From: Bruno Haible Date: Tue, 23 Sep 2003 10:14:01 +0000 (+0000) Subject: Portability to SunOS 4, which lacks strtoul() and atexit(). X-Git-Tag: v0.13~234 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d14eb956874bfcd300955a4ece4ec395959b90fd;p=thirdparty%2Fgettext.git Portability to SunOS 4, which lacks strtoul() and atexit(). --- diff --git a/gettext-runtime/ChangeLog b/gettext-runtime/ChangeLog index 46e0ca023..5f98e7da7 100644 --- a/gettext-runtime/ChangeLog +++ b/gettext-runtime/ChangeLog @@ -1,3 +1,8 @@ +2003-09-16 Bruno Haible + + Portability to SunOS 4. + * configure.ac: Also check for strtoul and atexit. + 2003-08-29 Bruno Haible * Makefile.am (config.h.msvc): Define HAVE_DECL__SNPRINTF, diff --git a/gettext-runtime/configure.ac b/gettext-runtime/configure.ac index 614b78bbc..feeb88044 100644 --- a/gettext-runtime/configure.ac +++ b/gettext-runtime/configure.ac @@ -75,8 +75,8 @@ AC_TYPE_SIZE_T dnl Checks for library functions. gl_FUNC_ALLOCA AC_FUNC_VPRINTF -AC_CHECK_FUNCS([setlocale strerror]) -AC_REPLACE_FUNCS([memmove]) +AC_CHECK_FUNCS([setlocale strerror strtoul]) +AC_REPLACE_FUNCS([atexit memmove]) gt_FUNC_SETENV gl_FUNC_STRERROR jm_FUNC_GLIBC_UNLOCKED_IO diff --git a/gettext-runtime/lib/ChangeLog b/gettext-runtime/lib/ChangeLog index ec1f087d2..e8649edaa 100644 --- a/gettext-runtime/lib/ChangeLog +++ b/gettext-runtime/lib/ChangeLog @@ -1,3 +1,11 @@ +2003-09-16 Bruno Haible + + Portability to SunOS 4. + * atexit.c: New file, trivial link to ../../gettext-tools/lib. + * Makefile.am (libgrt_a_SOURCES): + Add ../../gettext-tools/lib/strtoul.c. + (LIBADD_SOURCE): Add atexit.c. + 2003-09-14 Bruno Haible * Makefile.am (libgrt_a_SOURCES): Add fwriteerror.h, fwriteerror.c. diff --git a/gettext-runtime/lib/Makefile.am b/gettext-runtime/lib/Makefile.am index 4113aa789..0a09dcfb1 100644 --- a/gettext-runtime/lib/Makefile.am +++ b/gettext-runtime/lib/Makefile.am @@ -34,6 +34,7 @@ libgrt_a_SOURCES = \ ../../gettext-tools/lib/getopt.h ../../gettext-tools/lib/getopt.c ../../gettext-tools/lib/getopt1.c \ ../../gettext-tools/lib/pathmax.h \ ../../gettext-tools/lib/progname.h ../../gettext-tools/lib/progname.c ../../gettext-tools/lib/progreloc.c \ + ../../gettext-tools/lib/strtoul.c \ ../../gettext-tools/lib/unlocked-io.h \ ../../gettext-tools/lib/xmalloc.h ../../gettext-tools/lib/xmalloc.c ../../gettext-tools/lib/xstrdup.c \ ../../gettext-tools/lib/xreadlink.h ../../gettext-tools/lib/xreadlink.c @@ -42,6 +43,7 @@ libgrt_a_SOURCES = \ LIBADD_SOURCE = \ alloca.c \ + atexit.c \ ../../gettext-tools/lib/canonicalize.h canonicalize.c \ memmove.c \ readlink.c \ diff --git a/gettext-runtime/lib/atexit.c b/gettext-runtime/lib/atexit.c new file mode 100644 index 000000000..b464b1589 --- /dev/null +++ b/gettext-runtime/lib/atexit.c @@ -0,0 +1 @@ +#include "../../gettext-tools/lib/atexit.c"