Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 19 Jun 1999 09:58:37 +0000 (09:58 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 19 Jun 1999 09:58:37 +0000 (09:58 +0000)
1999-06-18  Zack Weinberg  <zack@rabi.columbia.edu>

* include/features.h: Define new macros __GNUC_PREREQ and
__GLIBC_PREREQ which can be used to test the version of gcc
and glibc respectively.

* assert/assert.h: Use __GNUC_PREREQ.
* intl/libintl.h: Likewise.
* math/complex.h: Likewise.
* math/tgmath.h: Likewise.
* misc/sys/cdefs.h: Likewise.
* posix/sys/types.h: Likewise.
* socket/sys/socket.h: Likewise.
* string/bits/string2.h: Likewise.
* sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
* sysdeps/i386/fpu/bits/mathinline.h: Likewise.

1999-06-18  Zack Weinberg  <zack@rabi.columbia.edu>

* include/libintl.h: Declare _libc_intl_domainname here.
Define _ and N_ here.
* include/libc-symbols.h: Don't include <libintl.h>.  Don't
define _ and N_.  Don't declare _libc_intl_domainname.
* Makeconfig (CPPFLAGS): Use -imacros to read libc-symbols.h.

* db2/config.h: Don't include sys/stat.h or define
HAVE_ST_BLKSIZE here...
* db2/compat.h: ...do it here.

* linuxthreads/internals.h: Include bits/libc-tsd.h after all
other headers.
* linuxthreads/no-tsd.c: Include sys/cdefs.h for __P.
* iconv/iconv.c: Include stddef.h for NULL.
* malloc/malloc.h: Include features.h.
* sysdeps/generic/morecore.c: Use __malloc_ptr_t not __ptr_t.

* sysdeps/unix/make_errlist.c: Write an "#include <libintl.h>"
into the generated file.
* sysdeps/gnu/errlist.awk: Likewise.
* sysdeps/gnu/errlist.c: Rebuilt.

* assert/assert-perr.c: Include libintl.h.
* assert/assert.c: Likewise.
* elf/dl-open.c: Likewise.
* elf/dlsym.c: Likewise.
* elf/dlvsym.c: Likewise.
* iconv/iconv_prog.c: Likewise.
* inet/rcmd.c: Likewise.
* inet/ruserpass.c: Likewise.
* locale/programs/charset.c: Likewise.
* locale/programs/ld-collate.c: Likewise.
* locale/programs/ld-ctype.c: Likewise.
* locale/programs/ld-messages.c: Likewise.
* locale/programs/ld-monetary.c: Likewise.
* locale/programs/ld-numeric.c: Likewise.
* locale/programs/ld-time.c: Likewise.
* locale/programs/locfile.c: Likewise.
* locale/programs/repertoire.c: Likewise.
* login/programs/database.c: Likewise.
* login/programs/request.c: Likewise.
* malloc/mcheck.c: Likewise.
* misc/error.c: Likewise.
* nis/nis_call.c: Likewise.
* nis/nis_callback.c: Likewise.
* nis/nis_error.c: Likewise.
* nis/nis_local_names.c: Likewise.
* nis/nis_print.c: Likewise.
* nis/nis_print_group_entry.c: Likewise.
* nis/ypclnt.c: Likewise.
* nis/nss_nisplus/nisplus-publickey.c: Likewise.
* nscd/cache.c: Likewise.
* nscd/connections.c: Likewise.
* nscd/grpcache.c: Likewise.
* nscd/hstcache.c: Likewise.
* nscd/nscd_conf.c: Likewise.
* nscd/nscd_stat.c: Likewise.
* nscd/pwdcache.c: Likewise.
* posix/id.c: Likewise.
* resolv/herror.c: Likewise.
* stdio-common/psignal.c: Likewise.
* string/strsignal.c: Likewise.
* sunrpc/auth_unix.c: Likewise.
* sunrpc/clnt_perr.c: Likewise.
* sunrpc/clnt_raw.c: Likewise.
* sunrpc/clnt_tcp.c: Likewise.
* sunrpc/clnt_udp.c: Likewise.
* sunrpc/clnt_unix.c: Likewise.
* sunrpc/get_myaddr.c: Likewise.
* sunrpc/pm_getmaps.c: Likewise.
* sunrpc/pmap_clnt.c: Likewise.
* sunrpc/pmap_rmt.c: Likewise.
* sunrpc/rpc_main.c: Likewise.
* sunrpc/rpc_scan.c: Likewise.
* sunrpc/svc_run.c: Likewise.
* sunrpc/svc_simple.c: Likewise.
* sunrpc/svc_tcp.c: Likewise.
* sunrpc/svc_udp.c: Likewise.
* sunrpc/svc_unix.c: Likewise.
* sunrpc/xdr_rec.c: Likewise.
* sunrpc/xdr_ref.c: Likewise.
* sysdeps/mach/hurd/mips/dl-machine.c: Likewise.
* sysdeps/posix/gai_strerror.c: Likewise.
* sysdeps/unix/siglist.c: Likewise.
* sysdeps/unix/sysv/linux/siglist.c: Likewise.
* sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
* sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c: Likewise.
* timezone/zic.c: Likewise.

91 files changed:
ChangeLog
Makeconfig
assert/assert-perr.c
assert/assert.c
assert/assert.h
db2/compat.h
db2/config.h
elf/dl-open.c
elf/dlsym.c
elf/dlvsym.c
iconv/iconv.c
iconv/iconv_prog.c
include/features.h
include/libc-symbols.h
include/libintl.h
inet/rcmd.c
inet/ruserpass.c
intl/libintl.h
linuxthreads/internals.h
linuxthreads/no-tsd.c
locale/programs/charset.c
locale/programs/ld-collate.c
locale/programs/ld-ctype.c
locale/programs/ld-messages.c
locale/programs/ld-monetary.c
locale/programs/ld-numeric.c
locale/programs/ld-time.c
locale/programs/locfile.c
locale/programs/repertoire.c
login/programs/database.c
login/programs/request.c
malloc/malloc.h
malloc/mcheck.c
math/complex.h
math/tgmath.h
misc/error.c
misc/sys/cdefs.h
nis/nis_call.c
nis/nis_callback.c
nis/nis_error.c
nis/nis_local_names.c
nis/nis_print.c
nis/nis_print_group_entry.c
nis/nss_nisplus/nisplus-publickey.c
nis/ypclnt.c
nscd/cache.c
nscd/connections.c
nscd/grpcache.c
nscd/hstcache.c
nscd/nscd_conf.c
nscd/nscd_stat.c
nscd/pwdcache.c
posix/id.c
posix/sys/types.h
resolv/herror.c
socket/sys/socket.h
stdio-common/psignal.c
string/bits/string2.h
string/strsignal.c
sunrpc/auth_unix.c
sunrpc/clnt_perr.c
sunrpc/clnt_raw.c
sunrpc/clnt_tcp.c
sunrpc/clnt_udp.c
sunrpc/clnt_unix.c
sunrpc/get_myaddr.c
sunrpc/pm_getmaps.c
sunrpc/pmap_clnt.c
sunrpc/pmap_rmt.c
sunrpc/rpc_main.c
sunrpc/rpc_scan.c
sunrpc/svc_run.c
sunrpc/svc_simple.c
sunrpc/svc_tcp.c
sunrpc/svc_udp.c
sunrpc/svc_unix.c
sunrpc/xdr_rec.c
sunrpc/xdr_ref.c
sysdeps/alpha/fpu/bits/mathinline.h
sysdeps/generic/morecore.c
sysdeps/gnu/errlist.awk
sysdeps/gnu/errlist.c
sysdeps/i386/fpu/bits/mathinline.h
sysdeps/mach/hurd/mips/dl-machine.c
sysdeps/posix/gai_strerror.c
sysdeps/unix/make_errlist.c
sysdeps/unix/siglist.c
sysdeps/unix/sysv/linux/arm/siglist.c
sysdeps/unix/sysv/linux/siglist.c
sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c
timezone/zic.c

index 2367f18cbbd49bc15b2eb6583c65d1a2af1701d1..5cb83a8409c1a64ee4aac79a14d0f5e32017175e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,111 @@
+1999-06-18  Zack Weinberg  <zack@rabi.columbia.edu>
+
+       * include/features.h: Define new macros __GNUC_PREREQ and
+       __GLIBC_PREREQ which can be used to test the version of gcc
+       and glibc respectively.
+
+       * assert/assert.h: Use __GNUC_PREREQ.
+       * intl/libintl.h: Likewise.
+       * math/complex.h: Likewise.
+       * math/tgmath.h: Likewise.
+       * misc/sys/cdefs.h: Likewise.
+       * posix/sys/types.h: Likewise.
+       * socket/sys/socket.h: Likewise.
+       * string/bits/string2.h: Likewise.
+       * sysdeps/alpha/fpu/bits/mathinline.h: Likewise.
+       * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
+
+1999-06-18  Zack Weinberg  <zack@rabi.columbia.edu>
+
+       * include/libintl.h: Declare _libc_intl_domainname here.
+       Define _ and N_ here.
+       * include/libc-symbols.h: Don't include <libintl.h>.  Don't
+       define _ and N_.  Don't declare _libc_intl_domainname.
+       * Makeconfig (CPPFLAGS): Use -imacros to read libc-symbols.h.
+
+       * db2/config.h: Don't include sys/stat.h or define
+       HAVE_ST_BLKSIZE here...
+       * db2/compat.h: ...do it here.
+
+       * linuxthreads/internals.h: Include bits/libc-tsd.h after all
+       other headers.
+       * linuxthreads/no-tsd.c: Include sys/cdefs.h for __P.
+       * iconv/iconv.c: Include stddef.h for NULL.
+       * malloc/malloc.h: Include features.h.
+       * sysdeps/generic/morecore.c: Use __malloc_ptr_t not __ptr_t.
+
+       * sysdeps/unix/make_errlist.c: Write an "#include <libintl.h>"
+       into the generated file.
+       * sysdeps/gnu/errlist.awk: Likewise.
+       * sysdeps/gnu/errlist.c: Rebuilt.
+
+       * assert/assert-perr.c: Include libintl.h.
+       * assert/assert.c: Likewise.
+       * elf/dl-open.c: Likewise.
+       * elf/dlsym.c: Likewise.
+       * elf/dlvsym.c: Likewise.
+       * iconv/iconv_prog.c: Likewise.
+       * inet/rcmd.c: Likewise.
+       * inet/ruserpass.c: Likewise.
+       * locale/programs/charset.c: Likewise.
+       * locale/programs/ld-collate.c: Likewise.
+       * locale/programs/ld-ctype.c: Likewise.
+       * locale/programs/ld-messages.c: Likewise.
+       * locale/programs/ld-monetary.c: Likewise.
+       * locale/programs/ld-numeric.c: Likewise.
+       * locale/programs/ld-time.c: Likewise.
+       * locale/programs/locfile.c: Likewise.
+       * locale/programs/repertoire.c: Likewise.
+       * login/programs/database.c: Likewise.
+       * login/programs/request.c: Likewise.
+       * malloc/mcheck.c: Likewise.
+       * misc/error.c: Likewise.
+       * nis/nis_call.c: Likewise.
+       * nis/nis_callback.c: Likewise.
+       * nis/nis_error.c: Likewise.
+       * nis/nis_local_names.c: Likewise.
+       * nis/nis_print.c: Likewise.
+       * nis/nis_print_group_entry.c: Likewise.
+       * nis/ypclnt.c: Likewise.
+       * nis/nss_nisplus/nisplus-publickey.c: Likewise.
+       * nscd/cache.c: Likewise.
+       * nscd/connections.c: Likewise.
+       * nscd/grpcache.c: Likewise.
+       * nscd/hstcache.c: Likewise.
+       * nscd/nscd_conf.c: Likewise.
+       * nscd/nscd_stat.c: Likewise.
+       * nscd/pwdcache.c: Likewise.
+       * posix/id.c: Likewise.
+       * resolv/herror.c: Likewise.
+       * stdio-common/psignal.c: Likewise.
+       * string/strsignal.c: Likewise.
+       * sunrpc/auth_unix.c: Likewise.
+       * sunrpc/clnt_perr.c: Likewise.
+       * sunrpc/clnt_raw.c: Likewise.
+       * sunrpc/clnt_tcp.c: Likewise.
+       * sunrpc/clnt_udp.c: Likewise.
+       * sunrpc/clnt_unix.c: Likewise.
+       * sunrpc/get_myaddr.c: Likewise.
+       * sunrpc/pm_getmaps.c: Likewise.
+       * sunrpc/pmap_clnt.c: Likewise.
+       * sunrpc/pmap_rmt.c: Likewise.
+       * sunrpc/rpc_main.c: Likewise.
+       * sunrpc/rpc_scan.c: Likewise.
+       * sunrpc/svc_run.c: Likewise.
+       * sunrpc/svc_simple.c: Likewise.
+       * sunrpc/svc_tcp.c: Likewise.
+       * sunrpc/svc_udp.c: Likewise.
+       * sunrpc/svc_unix.c: Likewise.
+       * sunrpc/xdr_rec.c: Likewise.
+       * sunrpc/xdr_ref.c: Likewise.
+       * sysdeps/mach/hurd/mips/dl-machine.c: Likewise.
+       * sysdeps/posix/gai_strerror.c: Likewise.
+       * sysdeps/unix/siglist.c: Likewise.
+       * sysdeps/unix/sysv/linux/siglist.c: Likewise.
+       * sysdeps/unix/sysv/linux/arm/siglist.c: Likewise.
+       * sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c: Likewise.
+       * timezone/zic.c: Likewise.
+
 1999-06-18  H.J. Lu  <hjl@gnu.org>
 
        * localedata/Makefile (charmaps): Exclude SCCS.
index 6ae27e9dc6b100c79675c873fde9b79f462f2b0b..f4f6508f1c59a8ac048662333116484b6de48ad5 100644 (file)
@@ -570,7 +570,7 @@ libio-include = -I$(..)libio
 
 # These are the variables that the implicit compilation rules use.
 CPPFLAGS = $($(subdir)-CPPFLAGS) $(+includes) $(defines) \
-          -include $(..)include/libc-symbols.h $(sysdep-CPPFLAGS) \
+          -imacros $(..)include/libc-symbols.h $(sysdep-CPPFLAGS) \
           $(CPPFLAGS-$(suffix $@)) $(CPPFLAGS-$(<F)) $(CPPFLAGS-$(@F))
 override CFLAGS        = $(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \
                  $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F))
index ecfb5ee88848dca173b8b2746d53095f8e110e51..384735d5769d3aab02e262c15fe71b5a338ae88e 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <sysdep.h>
+#include <libintl.h>
 
 
 extern const char *__assert_program_name; /* In assert.c.  */
index f1144101f8d1d6b7b8c1dc30fc29c6db44b084be..e957a44f9778fe99d82c5d9220844aaf3e6f8df8 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sysdep.h>
+#include <libintl.h>
 
 
 const char *__assert_program_name;
index bbff9417f46d0b74f8048a7fecc0a23b3ff1fbda..386e80c3b17000afe5d4d6693c9a1660a04c331f 100644 (file)
@@ -87,17 +87,11 @@ __END_DECLS
 
 /* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'
    which contains the name of the function currently being defined.
-#  define __ASSERT_FUNCTION    __PRETTY_FUNCTION__
    This is broken in G++ before version 2.6.
    C9x has a similar variable called __func__, but prefer the GCC one since
    it demangles C++ function names.  */
-# ifdef __GNUC__
-#  if __GNUC__ > 2 || (__GNUC__ == 2 \
-                      && __GNUC_MINOR__ >= (defined __cplusplus ? 6 : 4))
+# if __GNUC_PREREQ (2, (defined __cplusplus ? 6 : 4))
 #   define __ASSERT_FUNCTION   __PRETTY_FUNCTION__
-#  else
-#   define __ASSERT_FUNCTION   ((__const char *) 0)
-#  endif
 # else
 #  if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
 #   define __ASSERT_FUNCTION   __func__
index 86909aeb1304a0c00f9ee8056c59aaa969b14778..51008afcf07fbf183c68dc7ad58c4041f3a192c9 100644 (file)
@@ -3,6 +3,12 @@
 #include <sys/types.h>
 #include <errno.h>
 
+#include <sys/stat.h>
+#ifdef _STATBUF_ST_BLKSIZE
+# define HAVE_ST_BLKSIZE
+#endif
+
+
 #ifndef EFTYPE
 # define EFTYPE EINVAL
 #endif
index e5e105830e1200d7a28bfbcdb12d0f6a6f366e21..6f09795e3c4fb47b17878fbfeb2f2814168181c3 100644 (file)
@@ -2,16 +2,10 @@
 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
 
 /* ...but edited by hand to be used in GNU libc.  */
-#include <sys/stat.h>          /* To get _STATBUF_ST_BLKSIZE.  */
 
 /* Define to empty if the keyword does not work.  */
 /* #undef const */
 
-/* Define if your struct stat has st_blksize.  */
-#ifdef _STATBUF_ST_BLKSIZE
-# define HAVE_ST_BLKSIZE 1
-#endif
-
 /* Define to `int' if <sys/types.h> doesn't define.  */
 /* #undef mode_t */
 
index b6c79b41ef8f5b094720dbb098dadf8422866bf4..149badd61860efb21158e6d5e40878b17da30749 100644 (file)
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
+#include <libintl.h>
 #include <sys/mman.h>          /* Check whether MAP_COPY is defined.  */
 #include <sys/param.h>
 #include <bits/libc-lock.h>
index 5753f54d6ead0bf4ee80b5822fa2ea5ffabd0cd2..6627ffc6c23d884c94ad43a7963d2c4fa12c3e43 100644 (file)
@@ -20,6 +20,7 @@
 #include <dlfcn.h>
 #include <setjmp.h>
 #include <stddef.h>
+#include <libintl.h>
 #include <elf/ldsodefs.h>
 
 struct dlsym_args
index b100a2ecbfa996f841f4459b7f6f0f4b4790a81f..68e099b4f9742b365cb3edd36540fcf32bc76b92 100644 (file)
@@ -20,6 +20,7 @@
 #include <dlfcn.h>
 #include <setjmp.h>
 #include <stddef.h>
+#include <libintl.h>
 #include <elf/ldsodefs.h>
 
 #include <dl-hash.h>
index 85a39e3fa5d6de8d14ede86fc404c5add74dab3d..ee16d3b091459cbc8fd2bad450703a4012f60e93 100644 (file)
@@ -19,6 +19,7 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <stddef.h> /* for NULL */
 #include <errno.h>
 #include <iconv.h>
 
index 78fa6234f49769edf7a8fd81cef8e1e234d5491c..c91c76f34f6a8d0e210494ef21b9381ba48abad7 100644 (file)
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <libintl.h>
 #ifdef _POSIX_MAPPED_FILES
 # include <sys/mman.h>
 #endif
index bc1051041552cc866833ebf89b49e4c4605bf1f4..de2b143b6009ef6b2c1e87fe6e880e45815472bb 100644 (file)
 #define        __GLIBC__       2
 #define        __GLIBC_MINOR__ 2
 
+/* Convenience macros to test the versions of glibc and gcc.
+   Use them like this:
+   #if __GNUC_PREREQ (2,8)
+   ... code requiring gcc 2.8 or later ...
+   #endif
+   Note - they won't work for gcc1 or glibc1, since the _MINOR macros
+   were not defined then.  */
+#define __GNUC_PREREQ(maj,min) (defined __GNUC__ && defined __GNUC_MINOR__ \
+               && ((__GNUC__ << 16) + __GNUC_MINOR__) >= ((maj<<16) + min))
+#define __GLIBC_PREREQ(maj,min) (defined __GLIBC__ && defined __GLIBC_MINOR__ \
+               && ((__GLIBC__ << 16) + __GLIBC_MINOR__) >= ((maj<<16) + min))
+
 /* This is here only because every header file already includes this one.  */
 #ifndef __ASSEMBLER__
+#ifndef _SYS_CDEFS_H
 # include <sys/cdefs.h>
+#endif
 
 /* If we don't have __REDIRECT, prototypes will be missing if
    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. */
index 5d15791fdacf1c61a7b83dcf83c354376b5517c5..dd573b32a8f88121cfaef45fcca98adb47a41ce0 100644 (file)
 #define _REENTRANT     1
 
 #include <config.h>
-/*
-\f
-*/
-
-#ifndef        __ASSEMBLER__
 
-/* Define the macros `_' and `N_' for conveniently marking translatable
-   strings in the libc source code.  */
-
-# define N_(msgid)     msgid
-
-# include <libintl.h>
-extern const char _libc_intl_domainname[];
-
-# ifdef dgettext
-/* This is defined as an optimizing macro, so use it.  */
-#  define _(msgid)     dgettext (_libc_intl_domainname, (msgid))
-# else
-/* Be sure to use only the __ name when `dgettext' is a plain function
-   instead of an optimizing macro.  */
-#  define _(msgid)     __dgettext (_libc_intl_domainname, (msgid))
-# endif
-
-#endif
-
-/*
-\f
-*/
 /* The symbols in all the user (non-_) macros are C symbols.
    HAVE_GNU_LD without HAVE_ELF implies a.out.  */
 
index 3763b04c5f2c7abb552aefefd236a15efffb948c..a772853c02d06b2c4033993064bb0aa6eddc388c 100644 (file)
@@ -6,4 +6,20 @@ extern char *__gettext __P ((__const char *__msgid));
 extern char *__textdomain __P ((__const char *__domainname));
 extern char *__bindtextdomain __P ((__const char *__domainname,
                                    __const char *__dirname));
+extern const char _libc_intl_domainname[];
+
+/* Define the macros `_' and `N_' for conveniently marking translatable
+   strings in the libc source code.  */
+
+# define N_(msgid)     msgid
+
+# ifdef dgettext
+/* This is defined as an optimizing macro, so use it.  */
+#  define _(msgid)     dgettext (_libc_intl_domainname, (msgid))
+# else
+/* Be sure to use only the __ name when `dgettext' is a plain function
+   instead of an optimizing macro.  */
+#  define _(msgid)     __dgettext (_libc_intl_domainname, (msgid))
+# endif
+
 #endif
index 1a38de555ddd1dcde0cbbbc0bf09355f991abbfd..6d196b73119b11fd2dba59dfaa5a1b2a4e8410ff 100644 (file)
@@ -49,6 +49,7 @@ static char sccsid[] = "@(#)rcmd.c    8.3 (Berkeley) 3/26/94";
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>
+#include <libintl.h>
 
 
 int __ivaliduser __P ((FILE *, u_int32_t, const char *, const char *));
index 582eec661331c7855bd1ab4e66f7438168ce1857..70bfdd4c8dd2ac78c88e8df139b9170551569185 100644 (file)
@@ -41,6 +41,7 @@ static char sccsid[] = "@(#)ruserpass.c       8.3 (Berkeley) 4/2/94";
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <libintl.h>
 
 /* #include "ftp_var.h" */
 
index 0a0f898ed79202e6fe3c0d4778c1ae9c0eb2437b..1d3551899531d9b29cd1f0f43768c9f0e64e0e79 100644 (file)
@@ -82,7 +82,7 @@ extern char *bindtextdomain __P ((__const char *__domainname,
 # define dgettext(domainname, msgid)                                         \
   dcgettext (domainname, msgid, LC_MESSAGES)
 
-# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
+# if __GNUC_PREREQ (2,7)
 /* Variable defined in loadmsgcat.c which gets incremented every time a
    new catalog is loaded.  */
 extern int _nl_msg_cat_cntr;
index cfd72cda728e2ac3036ed253ef1fd351fb8f97b4..db84707312d59a766104a0171e2814605ad8dcbc 100644 (file)
 
 /* Includes */
 
-#include <bits/libc-tsd.h> /* for _LIBC_TSD_KEY_N */
 #include <limits.h>
 #include <setjmp.h>
 #include <signal.h>
 #include <unistd.h>
 #include <sys/types.h>
+#include <bits/libc-tsd.h> /* for _LIBC_TSD_KEY_N */
 
 #include "pt-machine.h"
 
index ef79cb8320df8ce84311000f83c69f27da978c47..f852ce01a79b8d7ed88fc1e58e9b564d1ba0e0e0 100644 (file)
@@ -17,6 +17,7 @@
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#include <sys/cdefs.h>  /* for __P */
 #include <bits/libc-tsd.h>
 
 /* This file provides uinitialized (common) definitions for the
index 767fafb93a0ee2c9b47e28ab8c4ac4ea5970d95a..2222c9f48a7d24b6d437b49212bea201211c2b26 100644 (file)
@@ -28,6 +28,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <libintl.h>
 
 #include "error.h"
 #include "charset.h"
index c16771638c1608ef5a2b81c681ed2512f538b5c8..265bfd0af1374b3b8a9a74437f51b8966035de16 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <wchar.h>
+#include <libintl.h>
 
 #include "localeinfo.h"
 #include "locales.h"
index 6ce48b7996585280635da8bacb50283bfc6010b9..714a71898bbdf33acaa1e1ede22fa7a4a0e99754 100644 (file)
@@ -25,6 +25,7 @@
 #include <endian.h>
 #include <limits.h>
 #include <string.h>
+#include <libintl.h>
 
 #include "locales.h"
 #include "localeinfo.h"
index 288979f45429ced90775a6163f879879eb43973d..69e411c8d629312106812fce803eb1d97d46834f 100644 (file)
@@ -24,6 +24,7 @@
 #include <alloca.h>
 #include <langinfo.h>
 #include <string.h>
+#include <libintl.h>
 #include <sys/uio.h>
 
 #ifdef HAVE_REGEX
index a74486ad60c5d84a1332b06de2142033b494e523..b903d630aa242c987bbff800a0ed9a4260a4aeef 100644 (file)
@@ -25,6 +25,7 @@
 #include <limits.h>
 #include <stdlib.h>
 #include <string.h>
+#include <libintl.h>
 
 
 /* Undefine following line in production version.  */
index 4042d6eba6c4defa33241e9ea60e6c9c16da142e..0e61481c73cf0b7fcadbd80f9986179bc451e060 100644 (file)
@@ -24,6 +24,7 @@
 #include <alloca.h>
 #include <langinfo.h>
 #include <string.h>
+#include <libintl.h>
 
 /* Undefine following line in production version.  */
 /* #define NDEBUG 1 */
index bee0b0ea645b49f987cc0d6ff3f44b2e0b7bf3d2..c63d897f077ed1cb2e000875c97924baccc9c097 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <langinfo.h>
 #include <string.h>
+#include <libintl.h>
 
 /* Undefine following line in production version.  */
 /* #define NDEBUG 1 */
index a90168ac8140452da51fcaa2a23e203affed919c..79d6ab13e6dc6b7a1ab16e1704c934380d79fb0b 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <sys/stat.h>
 #include <sys/uio.h>
 
index e7040a0e2c583371e8d0692966bb3b2e8e77a52d..a03021fdbf1a5303b340cbe8eaea356724cb4a09 100644 (file)
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <libintl.h>
 
 #include "linereader.h"
 #include "charset.h"
index 7044cd8d87ac7d22aea1b370bb98192eeb36c105..4267c111862ee65fa889a5d4447a1feed5702b56 100644 (file)
@@ -26,6 +26,7 @@
 #include <time.h>
 #include <unistd.h>
 #include <utmp.h>
+#include <libintl.h>
 
 
 #include "utmpd-private.h"
index 889ce0cba9fe9264c02d43b80aa008399dd75ba5..33f5524c326bbacf0bf3e989bb493bee196305fa 100644 (file)
@@ -22,6 +22,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <utmp.h>
+#include <libintl.h>
 
 #include "utmpd.h"
 #include "utmpd-private.h"
index eeb33a29492af59cf5bdb2db1072a0b4cedf9c08..c453d728e6a8883fcd76d575f96cbaf8a8be64f1 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef _MALLOC_H
 #define _MALLOC_H 1
 
+#include <features.h>
+
 /*
   `ptmalloc', a malloc implementation for multiple threads without
   lock contention, by Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>.
index 53575a7677c12eaa085c2c8663e80388753e733e..85258e9dd0ebebb55e9eedd78b777f08e00e50ad 100644 (file)
@@ -25,6 +25,7 @@
 # include <malloc.h>
 # include <mcheck.h>
 # include <stdio.h>
+# include <libintl.h>
 #endif
 
 /* Old hook values.  */
index 7ed9890e129db7b98d992f13607f4bc250a39f2d..82fae63163d85c484d13cc7e19cc131b288e851c 100644 (file)
@@ -33,7 +33,7 @@ __BEGIN_DECLS
 /* We might need to add support for more compilers here.  But once ISO
    C 9X is out hopefully all maintained compilers will provide the data
    types `float complex' and `double complex'.  */
-#if (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || __GNUC__ > 2
+#if __GNUC_PREREQ (2, 7)
 # define _Complex __complex__
 #endif
 
index 1a6591e7999dfd546081c8f21810dd314bc4ca4d..449b498ab7b5f2c976f19d6565482a1764f94086 100644 (file)
@@ -34,7 +34,7 @@
    do not try this for now and instead concentrate only on GNU CC.  Once
    we have more information support for other compilers might follow.  */
 
-#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 7)
+#if __GNUC_PREREQ (2, 7)
 
 /* We have two kinds of generic macros: to support functions which are
    only defined on real valued parameters and those which are defined
index ca7f3b47b8896d296a889058f43fc38e80002ef3..cb55c2f0d84ba9669b194a62b8e17d440f923eea 100644 (file)
@@ -26,6 +26,7 @@
 #endif
 
 #include <stdio.h>
+#include <libintl.h>
 
 #if HAVE_VPRINTF || HAVE_DOPRNT || _LIBC
 # if __STDC__
index 6d4bc62e14adc1989674de4fc5e744794f559eda..6a8b870e13934e09265604eab52bf3e406e76ade 100644 (file)
@@ -33,7 +33,7 @@
 /* GCC can always grok prototypes.  For C++ programs we add throw()
    to help it optimize the function calls.  But this works only with
    gcc 2.8.x and egcs.  */
-# if defined __cplusplus && (__GNUC__ >= 3 || __GNUC_MINOR__ >= 8)
+# if defined __cplusplus && __GNUC_PREREQ (2,8)
 #  define __THROW      throw ()
 # else
 #  define __THROW
@@ -42,6 +42,7 @@
 /* This macro will be used for functions which might take C++ callback
    functions.  */
 # define __PMT(args)   args
+
 # define __DOTS                , ...
 
 #else  /* Not GCC.  */
 /*
 #elif __SOME_OTHER_COMPILER__
 
-# define __attribute__(xyz)
 # define __REDIRECT(name, proto, alias) name proto; \
        _Pragma("let " #name " = " #alias)
 */
    run in pedantic mode if the uses are carefully marked using the
    `__extension__' keyword.  But this is not generally available before
    version 2.8.  */
-#if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
-
+#if !__GNUC_PREREQ (2,8)
 # define __extension__         /* Ignore */
-
 #endif
 
 /* __restrict is known in EGCS 1.2 and above. */
-#if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 92)
-
+#if !__GNUC_PREREQ (2,92)
 # define __restrict    /* Ignore */
-
 #endif
 
 #endif  /* sys/cdefs.h */
index 73bd2d7de2b455009d9ac853d58583caf72695dc..0315ce3c40c690fa5479c14f2cbca5f8a0026740 100644 (file)
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <string.h>
+#include <libintl.h>
 #include <rpc/rpc.h>
 #include <rpc/auth.h>
 #include <rpcsvc/nis.h>
index 6525484b4594d8606d58773a7dea5cbda4665a78..57a15e5162b81df41265415c3fd9f714b5629736 100644 (file)
@@ -21,6 +21,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <rpc/rpc.h>
 #include <rpc/pmap_clnt.h>
 #include <string.h>
index f5fe0f631da9db457de411af5ff87db150450098..39d445380baa41153efefca8b9bb40c31c533ea7 100644 (file)
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <syslog.h>
 #include <string.h>
+#include <libintl.h>
 #include <rpcsvc/nis.h>
 
 
index 22601a46aa8bc37fa0c684ebe7d238e51177764f..0d23778ba9954e4f738cc03dcf0fb3d2273902ee 100644 (file)
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <string.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <rpcsvc/nis.h>
 
 nis_name
index ded5f5aa678a67d34280253bf74e9b4373a110c1..ab5f6838bdd0e49063b1562239f5642a5d0f361e 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <time.h>
 #include <string.h>
+#include <libintl.h>
 
 #include <rpcsvc/nis.h>
 
index d5cdda038ca0f339f5960de7921390a4ba09bcea..e1970dca487d58cb2cf906cf00fd0f2de842f57a 100644 (file)
@@ -18,6 +18,7 @@
    Boston, MA 02111-1307, USA. */
 
 #include <string.h>
+#include <libintl.h>
 #include <rpcsvc/nis.h>
 
 void
index a9a8e186e072db1910a6b88fccd96cc2fcc75331..1620611fbc7004d517c34fac32a3c510d600aca3 100644 (file)
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
+#include <libintl.h>
 #include <syslog.h>
 #include <rpc/rpc.h>
 #include <rpcsvc/nis.h>
index cfda29a668d36a44901b546bf97b7c6003e08428..1dc9ca3126344b91665e99e17187b056ab9566f6 100644 (file)
@@ -21,6 +21,7 @@
 #include <fcntl.h>
 #include <string.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <rpc/rpc.h>
 #include <rpcsvc/nis.h>
 #include <rpcsvc/yp.h>
index 0071c11524a0d07ca67fcbda1cfe7477b02ab7a4..61fb7703c2884d75337bb952f6fd7f6d6452f03e 100644 (file)
@@ -23,6 +23,7 @@
 #include <limits.h>
 #include <stdlib.h>
 #include <string.h>
+#include <libintl.h>
 #include <arpa/inet.h>
 #include <rpcsvc/nis.h>
 #include <sys/param.h>
index 9d1b4d366ef816dcce043cd401309871f499e5ee..d40d9873238c01f752ca47e838a2e4b4d8180aad 100644 (file)
@@ -24,6 +24,7 @@
 #include <pthread.h>
 #include <stdlib.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <arpa/inet.h>
 #include <sys/param.h>
 #include <sys/poll.h>
index d8848f3e00d57911e30301c6ebf1269519c775b2..62f4c573a60d63dcd3011b99bfb143769a58bf37 100644 (file)
@@ -26,6 +26,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <libintl.h>
 
 #include "nscd.h"
 #include "dbg_log.h"
index 6fceecfc56eb75a7544964a16c38ebd4fa57f87e..292d9187e4f80c83054bcc9cbf6d702a591af8c2 100644 (file)
@@ -28,6 +28,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <arpa/inet.h>
 
 #include "nscd.h"
index d31e2bde3a788f819a2c75967b63887b954e01ef..010b905fe89e6d18c06a725dfa8b0451c2d80b8f 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <libintl.h>
 #include <sys/param.h>
 #include <sys/types.h>
 
index f9d21aeb01ba5b817947218cbad787c2dae990f3..70c66e87fed7f5cde87312f2177bb456a00e5e1f 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <libintl.h>
 
 #include "nscd.h"
 #include "dbg_log.h"
index a66cf4fe3d9d548cd44b41158cdb9edb280eeffc..2c4e6c722f8d106b35b99092fef9bf79aaf99fd1 100644 (file)
@@ -27,6 +27,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
+#include <libintl.h>
 
 #include "nscd.h"
 #include "dbg_log.h"
index 6c602b21b4b49238ff282390a3f5a11dbf82a48f..c0db14c9bd825d464fa7c4547c25ca1e954bd3a7 100644 (file)
@@ -22,6 +22,7 @@
 #include <grp.h>
 #include <pwd.h>
 #include <limits.h>
+#include <libintl.h>
 #include <sys/types.h>
 
 
index 8ba320006b8848ff55251517778ba0e2b055e652..362d547c083e48a56a8a12bf3e20ef329d7ab9e2 100644 (file)
@@ -132,7 +132,7 @@ typedef unsigned int uint;
 
 /* These size-specific names are used by some of the inet code.  */
 
-#if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+#if !__GNUC_PREREQ (2, 7)
 
 /* These types are defined by the ISO C 9x header <inttypes.h>. */
 # ifndef __int8_t_defined
index 53780cda720483cc9c2e69ef667422dbeef5f853..8ba0ebef624ce14b510809afca80e9492c48c0f0 100644 (file)
@@ -58,6 +58,7 @@ static char rcsid[] = "$Id$";
 #include <sys/param.h>
 #include <sys/uio.h>
 #include <netdb.h>
+#include <libintl.h>
 #if defined(BSD) && (BSD >= 199103)
 # include <unistd.h>
 # include <string.h>
index 7642e7502624721c405e2b4eb1750d48267bce84..0a5dc0190144e59df2611ad2ecf4e05c5961ec85 100644 (file)
@@ -61,8 +61,7 @@ enum
    uses with any of the listed types to be allowed without complaint.
    G++ 2.7 does not support transparent unions so there we want the
    old-style declaration, too.  */
-#if    (!defined __GNUC__ || __GNUC__ < 2 || defined __cplusplus || \
-        (__GNUC__ == 2 && __GNUC_MINOR__ < 7))
+#if defined __cplusplus || !__GNUC_PREREQ (2, 7)
 # define __SOCKADDR_ARG                struct sockaddr *
 # define __CONST_SOCKADDR_ARG  __const struct sockaddr *
 #else
index 19a57539931278841fda8c8b0453f3a9958eb6cc..269f7e2f3dab9d852f5ddea67089e220d330fde6 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <stdio.h>
 #include <signal.h>
+#include <libintl.h>
 
 
 #ifndef        HAVE_GNU_LD
index fdfa32dc2c526759c0e73ffb5282e09062204e1f..48903b3e8180edc6c12c24fdb88b102e629473ad 100644 (file)
@@ -167,9 +167,9 @@ __STRING2_COPY_TYPE (8);
                  : memset (s, c, n)))
 # endif
 
-/* GCC optimizes memset(s, 0, n) but not bzero(s, n).  */
-#if defined __GNUC__ \
-    && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 90))
+/* GCC optimizes memset(s, 0, n) but not bzero(s, n).
+   The optimization is broken before EGCS 1.1.  */
+#if __GNUC_PREREQ (2, 91)
 #  define __bzero(s, n) __builtin_memset (s, '\0', n)
 # endif
 
index 90480f5d4a39812653b2ca454950bb33aebf88b4..1a13707e37787627e2e9ff418bcff62e0c742a0c 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <libintl.h>
 #include <bits/libc-lock.h>
 
 
index 82ef91a0de5840c39c2d54067f4f96a53bf7d889..a03ce0219ab9013e7bd97494351aed8fcde3f97b 100644 (file)
@@ -42,6 +42,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <sys/param.h>
 
 #include <rpc/types.h>
index ae6a1da7e096080466f6850626529874cb05f6b7..7896499f82c8ab4ee8d7c76f86d8e591e7a0f04b 100644 (file)
@@ -39,6 +39,7 @@ static char sccsid[] = "@(#)clnt_perror.c 1.15 87/10/07 Copyr 1984 Sun Micro";
  */
 #include <stdio.h>
 #include <string.h>
+#include <libintl.h>
 #include <rpc/types.h>
 #include <rpc/auth.h>
 #include <rpc/clnt.h>
index 18ae2414ab7ac571f8320a027cbe08825aab7815..8ed589c93ddeb50af7384b26fdbc65088f2c64f4 100644 (file)
@@ -45,6 +45,7 @@ static char sccsid[] = "@(#)clnt_raw.c 1.22 87/08/11 Copyr 1984 Sun Micro";
 #include <rpc/rpc.h>
 #include <rpc/svc.h>
 #include <rpc/xdr.h>
+#include <libintl.h>
 
 #define MCALL_MSG_SIZE 24
 
index 1d00c7933172c3599fcad82dc5d461c82faaf35c..9a35ec1c221158028386e39c83275ab402af76ac 100644 (file)
@@ -54,6 +54,7 @@ static char sccsid[] = "@(#)clnt_tcp.c 1.37 87/10/05 Copyr 1984 Sun Micro";
 #include <errno.h>
 #include <stdio.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <rpc/rpc.h>
 #include <sys/poll.h>
 #include <sys/socket.h>
index 1d9f38651bbaa6705a3de2f6f617f98079ede12f..eeac79c3e62ce0db5b9eade2d3e734881884c57f 100644 (file)
@@ -39,6 +39,7 @@ static char sccsid[] = "@(#)clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro";
 
 #include <stdio.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <rpc/rpc.h>
 #include <rpc/xdr.h>
 #include <rpc/clnt.h>
index 761ecafb05e045b8fafc9d35e6fc68e3d3453f6e..211fcd6f7940a59073eae7afae78c4eff93486d8 100644 (file)
@@ -50,6 +50,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <rpc/rpc.h>
 #include <sys/uio.h>
 #include <sys/poll.h>
index 820c7b3109a2c07717e670534d795ecaa9f3b941..7a4bb8cb6fd891fe062ba164f35132b8694e1e7f 100644 (file)
@@ -44,6 +44,7 @@ static char sccsid[] = "@(#)get_myaddress.c 1.4 87/08/11 Copyr 1984 Sun Micro";
 #include <sys/socket.h>
 #include <stdio.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <net/if.h>
 #include <sys/ioctl.h>
 /* Order of following two #includes reversed by roland@gnu */
index 2812b3aead5c9cbd2785ec98fced7d0f5cf4a356..8f41a4568c5975f92c14d3d5bf9798d6f61505f9 100644 (file)
@@ -46,6 +46,7 @@ static char sccsid[] = "@(#)pmap_getmaps.c 1.10 87/08/11 Copyr 1984 Sun Micro";
 #include <netdb.h>
 #include <stdio.h>
 #include <errno.h>
+#include <libintl.h>
 
 /*
  * Get a copy of the current port maps.
index 11e241dfcb09013a304be3878a8151a0c09e280e..05cfe2fa5230b347d2358a5cf7d3e34e020a1277 100644 (file)
@@ -36,6 +36,7 @@
 
 #include <stdio.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <net/if.h>
 #include <sys/ioctl.h>
 #include <sys/socket.h>
index f361ac3598ced1059d2b72a634feec4b29fabd83..bfc9cc8954cb8b87f9daa421fdf1b98e2d094bf2 100644 (file)
@@ -41,6 +41,7 @@ static char sccsid[] = "@(#)pmap_rmt.c 1.21 87/08/27 Copyr 1984 Sun Micro";
 
 #include <unistd.h>
 #include <string.h>
+#include <libintl.h>
 #include <rpc/rpc.h>
 #include <rpc/pmap_prot.h>
 #include <rpc/pmap_clnt.h>
index aec153faaa831513673a873b844aee8b2e565ec0..cc3d24924675b077f5de3a8b16af3713c6897d37 100644 (file)
@@ -42,6 +42,7 @@ const char main_rcsid[] =
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
+#include <libintl.h>
 #include <ctype.h>
 #include <sys/types.h>
 #include <sys/param.h>
index aa988052b16e16062a9ec0e6ed04f0b661f29b12..daecc32d436a669acb1ae695e2f1c41ebfe2adcb 100644 (file)
@@ -41,6 +41,7 @@ char scan_rcsid[] =
 #include <stdio.h>
 #include <ctype.h>
 #include <string.h>
+#include <libintl.h>
 #include "rpc_scan.h"
 #include "rpc_parse.h"
 #include "rpc_util.h"
index d854fb4f2c115b49b6efdb9ce585b5ed09d11029..799c0125d696b69e30a769e2c48039201a75605e 100644 (file)
@@ -37,6 +37,7 @@ static char sccsid[] = "@(#)svc_run.c 1.1 87/10/13 Copyr 1984 Sun Micro";
  * Wait for input, call server program.
  */
 #include <errno.h>
+#include <libintl.h>
 #include <rpc/rpc.h>
 
 static int svc_stop;
index 6f24dfa42a14c21a4d6f1dc6e3a36b4b4fb16d6a..e40bea932eb43c6a2b787da5c1466eed46f535c8 100644 (file)
@@ -40,6 +40,7 @@ static char sccsid[] = "@(#)svc_simple.c 1.18 87/08/11 Copyr 1984 Sun Micro";
 
 #include <stdio.h>
 #include <string.h>
+#include <libintl.h>
 #include <rpc/rpc.h>
 #include <rpc/pmap_clnt.h>
 #include <sys/socket.h>
index cd24f726c91078778185a4a7b955c596ae9e5322..542f9d46fa321956d9ef9ff0e6de591541dba4d8 100644 (file)
@@ -44,6 +44,7 @@ static char sccsid[] = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro";
 #include <stdio.h>
 #include <unistd.h>
 #include <string.h>
+#include <libintl.h>
 #include <rpc/rpc.h>
 #include <sys/socket.h>
 #include <sys/poll.h>
index 3d95f4bc70d6ac583cce584dcc003e37ca9587fa..9d7846105e1a35c1e2a5ba31351fdc264405011b 100644 (file)
@@ -45,6 +45,7 @@ static char sccsid[] = "@(#)svc_udp.c 1.24 87/08/11 Copyr 1984 Sun Micro";
 #include <rpc/rpc.h>
 #include <sys/socket.h>
 #include <errno.h>
+#include <libintl.h>
 
 #ifdef USE_IN_LIBIO
 # include <libio/iolibio.h>
index a34e54dd71dfba7d5a27f8ff4a3954a2f4a0d360..57c0135fb175804078d60d54b432e7337e015738 100644 (file)
@@ -46,6 +46,7 @@
 #include <sys/poll.h>
 #include <errno.h>
 #include <stdlib.h>
+#include <libintl.h>
 
 /*
  * Ops vector for AF_UNIX based rpc service handle
index 4809589d07216382272e62f2981d7bd6ebc9775e..101f8c85cee46faa5fb24b2b69f3a9e6a7204cda 100644 (file)
@@ -48,6 +48,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <rpc/rpc.h>
+#include <libintl.h>
 
 #ifdef USE_IN_LIBIO
 # include <libio/iolibio.h>
index 090925d0d7465756f98708b3260998364203079a..2a9ffb169677b1775890d7278f0f32cdd7eaf368 100644 (file)
@@ -44,6 +44,7 @@ static char sccsid[] = "@(#)xdr_reference.c 1.11 87/08/11 SMI";
 #include <string.h>
 #include <rpc/types.h>
 #include <rpc/xdr.h>
+#include <libintl.h>
 
 #ifdef USE_IN_LIBIO
 # include <libio/iolibio.h>
index 681ea70cf9626a19f232aeefd311e7e40fc177c9..9207d52f6a6102ab1844f234926008c02eb0daef 100644 (file)
@@ -75,7 +75,7 @@ __inline_copysign(copysign, double)
 #undef __MATH_INLINE_copysign
 
 
-#if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8))
+#if __GNUC_PREREQ (2, 8)
 __MATH_INLINE float __fabsf (float __x) { return __builtin_fabsf (__x); }
 __MATH_INLINE float fabsf (float __x) { return __builtin_fabsf (__x); }
 __MATH_INLINE double __fabs (double __x) { return __builtin_fabs (__x); }
index 1e374da27d0752f178ba0007425470d6ff55539a..5e1ac58d7e6df7a59899e1297990867a687c75d4 100644 (file)
@@ -30,7 +30,7 @@
    systems with potentially hostile include files.  */
 
 #include <stddef.h>
-extern __ptr_t __sbrk __P ((ptrdiff_t increment));
+extern __malloc_ptr_t __sbrk __P ((ptrdiff_t increment));
 #endif
 
 #ifndef NULL
@@ -40,12 +40,12 @@ extern __ptr_t __sbrk __P ((ptrdiff_t increment));
 /* Allocate INCREMENT more bytes of data space,
    and return the start of data space, or NULL on errors.
    If INCREMENT is negative, shrink data space.  */
-__ptr_t
+__malloc_ptr_t
 __default_morecore (increment)
      __malloc_ptrdiff_t increment;
 {
-  __ptr_t result = (__ptr_t) __sbrk (increment);
-  if (result == (__ptr_t) -1)
+  __malloc_ptr_t result = (__malloc_ptr_t) __sbrk (increment);
+  if (result == (__malloc_ptr_t) -1)
     return NULL;
   return result;
 }
index 0616b0303d780a32f6132c2d425b6db11fce93d9..3b2bd0d44d60894e1f59cfc89cb1daa7f4714aef 100644 (file)
@@ -40,6 +40,7 @@ BEGIN {
     print "/* This file is generated from errno.texi by errlist.awk.  */"
     print "";
     print "#include <errno.h>";
+    print "#include <libintl.h>";
     print "";
     print "#ifndef SYS_ERRLIST";
     print "# define SYS_ERRLIST _sys_errlist";
index c718773d52508829446c400787252f72d363d1ea..4c635d2b972b8eff32552968af662904b5bf2dc4 100644 (file)
@@ -1,6 +1,7 @@
 /* This file is generated from errno.texi by errlist.awk.  */
 
 #include <errno.h>
+#include <libintl.h>
 
 #ifndef SYS_ERRLIST
 # define SYS_ERRLIST _sys_errlist
index 8fb22d48d2e63581571c3f8c877c8faff7d7bcb8..00fe3c036fcc14ba5cfdabb70cb900634cb0533c 100644 (file)
@@ -138,7 +138,7 @@ __signbitl (long double __x)
 
 /* The gcc, version 2.7 or below, has problems with all this inlining
    code.  So disable it for this version of the compiler.  */
-#if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 7))
+#if __GNUC_PREREQ (2, 8)
 
 #if ((!defined __NO_MATH_INLINES || defined __LIBC_INTERNAL_MATH_INLINES) \
      && defined __OPTIMIZE__)
@@ -426,7 +426,7 @@ __inline_mathcode2 (pow, __x, __y, \
 __inline_mathop (sqrt, "fsqrt")
 __inline_mathop_ (long double, __sqrtl, "fsqrt")
 
-#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 8)
+#if __GNUC_PREREQ (2, 8)
 __inline_mathcode_ (double, fabs, __x, return __builtin_fabs (__x))
 __inline_mathcode_ (float, fabsf, __x, return __builtin_fabsf (__x))
 __inline_mathcode_ (long double, fabsl, __x, return __builtin_fabsl (__x))
index 18261e1115424ef14645cff7c50eb2e9226f38f2..e4955e441d99bc3257523d370bd1d70a61e046f6 100644 (file)
@@ -31,6 +31,7 @@
 #include <stdarg.h>
 #include <ctype.h>
 #include <sys/stat.h>
+#include <libintl.h>
 
 void weak_function
 abort (void)
index f5b33cb8dbdc266b3f4b8d82e521c97d48b8c857..490cd5bc577a880626b8a150047684c89a6828b0 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <stdio.h>
 #include <netdb.h>
+#include <libintl.h>
 
 static struct
   {
index 4d93a5d0dc7d88d9701b968ba697c504084eaa43..b73b15230a0041f13b1615ad525f5ee93daf1cc9 100644 (file)
@@ -58,6 +58,7 @@ main ()
    Boston, MA 02111-1307, USA.  */\n\n", year);
 
   puts ("#include <stddef.h>\n");
+  puts ("#include <libintl.h>\n");
   puts ("\n/* This is a list of all known `errno' codes.  */\n");
 
   printf ("\nconst int _sys_nerr = %d;\n\n", sys_nerr);
index 942f7647ab1394fe145947931783269028562efb..3913c538af806eb078c124d426192b7fe708f9b3 100644 (file)
@@ -17,6 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <stddef.h>
+#include <libintl.h>
 
 /* This is a list of all known signal numbers.  */
 
index 9a539604ffd948f5dc99b3f6af024f043c78f9c9..5d3a9afc538638754a073fb5c0ef6c0884d41309 100644 (file)
@@ -19,6 +19,7 @@
 #include <stddef.h>
 #include <signal.h>
 #include <sizes.h>
+#include <libintl.h>
 
 #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
 # define SYS_SIGLIST   __new_sys_siglist
index d14a1b92f126809532439aff81e5c59dcd2c47f1..30d2a4ac60edb312cde64556c05ee5ed5b5f951b 100644 (file)
@@ -19,6 +19,7 @@
 #include <stddef.h>
 #include <signal.h>
 #include <sizes.h>
+#include <libintl.h>
 
 #if defined HAVE_ELF && defined PIC && defined DO_VERSIONING
 # define SYS_SIGLIST   __new_sys_siglist
index 5d642e47f1f7f076ec7e8900dbbce3acc536172b..fd8a503ef40db5776a1b5409616e1277cb339707 100644 (file)
@@ -17,6 +17,7 @@
    Boston, MA 02111-1307, USA.  */
 
 #include <stddef.h>
+#include <libintl.h>
 
 
 /* This is a list of all known `errno' codes.  */
index 296f284c2aaf229945baa269538b92d4c4d70901..de706e83161251587019a7aaef4153d0cda2d02e 100644 (file)
@@ -11,6 +11,8 @@ static char   elsieid[] = "@(#)zic.c  7.99";
 #include "sys/stat.h"                  /* for umask manifest constants */
 #endif /* defined unix */
 
+#include <libintl.h>
+
 /*
 ** On some ancient hosts, predicates like `isspace(C)' are defined
 ** only if isascii(C) || C == EOF.  Modern hosts obey the C Standard,