From: Bruno Haible Date: Wed, 31 Oct 2001 20:15:27 +0000 (+0000) Subject: Portability to SunOS4. X-Git-Tag: v0.11~361 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c1f59483162fa17cbb895bab6cf60a774b43c25;p=thirdparty%2Fgettext.git Portability to SunOS4. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index d6475753e..1fb52a9bf 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,16 @@ +2001-10-31 Bruno Haible + + * Makefile.am (execute.lo, javacomp.lo, javaexec.lo, pipe-bidi.lo, + pipe-in.lo, pipe-out.lo, progname.lo, wait-process.lo, xerror.lo): + Depend on @STDBOOL_H@. + * execute.c (EXIT_FAILURE): Provide a fallback definition, for SunOS 4. + * pipe-bidi.c (EXIT_FAILURE): Likewise. + * pipe-in.c (EXIT_FAILURE): Likewise. + * pipe-out.c (EXIT_FAILURE): Likewise. + * wait-process.c (EXIT_FAILURE): Likewise. + * xerror.c (EXIT_FAILURE): Likewise. + (xasprintf): Use VA_START instead of va_start. + 2001-10-28 Bruno Haible * progname.c (set_program_name) [BeOS]: Make program_name absolute diff --git a/lib/Makefile.am b/lib/Makefile.am index e37664da0..027ada83c 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -73,7 +73,7 @@ DEFS = -DLIBDIR=\"$(libdir)\" @DEFS@ INCLUDES = -I. -I$(srcdir) -I.. -I../intl -I$(top_srcdir)/intl -all-local: @STDBOOL_H@ +all-local execute.lo javacomp.lo javaexec.lo pipe-bidi.lo pipe-in.lo pipe-out.lo progname.lo wait-process.lo xerror.lo: @STDBOOL_H@ stdbool.h: stdbool.h.in cp $(srcdir)/stdbool.h.in stdbool.h MOSTLYCLEANFILES = @STDBOOL_H@ diff --git a/lib/execute.c b/lib/execute.c index 0082959c3..775131134 100644 --- a/lib/execute.c +++ b/lib/execute.c @@ -45,6 +45,10 @@ #include "wait-process.h" #include "libgettext.h" +#ifndef EXIT_FAILURE +# define EXIT_FAILURE 1 +#endif + #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif diff --git a/lib/pipe-bidi.c b/lib/pipe-bidi.c index f704fe216..2e63b7ce3 100644 --- a/lib/pipe-bidi.c +++ b/lib/pipe-bidi.c @@ -43,6 +43,10 @@ #include "error.h" #include "libgettext.h" +#ifndef EXIT_FAILURE +# define EXIT_FAILURE 1 +#endif + #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif diff --git a/lib/pipe-in.c b/lib/pipe-in.c index 4b00c09e2..c5aab15a4 100644 --- a/lib/pipe-in.c +++ b/lib/pipe-in.c @@ -43,6 +43,10 @@ #include "error.h" #include "libgettext.h" +#ifndef EXIT_FAILURE +# define EXIT_FAILURE 1 +#endif + #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif diff --git a/lib/pipe-out.c b/lib/pipe-out.c index 957d2be90..da0a8b144 100644 --- a/lib/pipe-out.c +++ b/lib/pipe-out.c @@ -43,6 +43,10 @@ #include "error.h" #include "libgettext.h" +#ifndef EXIT_FAILURE +# define EXIT_FAILURE 1 +#endif + #ifndef STDIN_FILENO # define STDIN_FILENO 0 #endif diff --git a/lib/wait-process.c b/lib/wait-process.c index 408117c74..b48dc269c 100644 --- a/lib/wait-process.c +++ b/lib/wait-process.c @@ -77,6 +77,10 @@ #include "error.h" #include "libgettext.h" +#ifndef EXIT_FAILURE +# define EXIT_FAILURE 1 +#endif + #define _(str) gettext (str) diff --git a/lib/xerror.c b/lib/xerror.c index 41b858325..e74a57fa7 100644 --- a/lib/xerror.c +++ b/lib/xerror.c @@ -33,6 +33,10 @@ #include "mbswidth.h" #include "libgettext.h" +#ifndef EXIT_FAILURE +# define EXIT_FAILURE 1 +#endif + #define _(str) gettext (str) #if __STDC__ @@ -63,7 +67,7 @@ xasprintf (va_alist) va_list args; char *result; - va_start (args, format); + VA_START (args, format); #if !__STDC__ && !NEW_VARARGS format = va_arg (args, const char *); #endif