]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Portability to SunOS 4, which lacks strtoul() and atexit().
authorBruno Haible <bruno@clisp.org>
Tue, 23 Sep 2003 10:14:01 +0000 (10:14 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:01 +0000 (12:11 +0200)
gettext-runtime/ChangeLog
gettext-runtime/configure.ac
gettext-runtime/lib/ChangeLog
gettext-runtime/lib/Makefile.am
gettext-runtime/lib/atexit.c [new file with mode: 0644]

index 46e0ca023de10383b537c47744f916bbbabf0893..5f98e7da75df2831a0869c05a2d563ffaca5b352 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-16  Bruno Haible  <bruno@clisp.org>
+
+       Portability to SunOS 4.
+       * configure.ac: Also check for strtoul and atexit.
+
 2003-08-29  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (config.h.msvc): Define HAVE_DECL__SNPRINTF,
index 614b78bbc4835e03c93eacc1bb5ec8c073c0b80f..feeb88044d0289619427757e38305d5cdc0dcb8e 100644 (file)
@@ -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
index ec1f087d27ff5b16a584d685b9c73d163b878184..e8649edaacd60dd296a753cd53abde98f818ae5c 100644 (file)
@@ -1,3 +1,11 @@
+2003-09-16  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        * Makefile.am (libgrt_a_SOURCES): Add fwriteerror.h, fwriteerror.c.
index 4113aa78940fd3a5dfb8f9da8378c0dc901bf84d..0a09dcfb12235539fe9b531adae7390394c522b4 100644 (file)
@@ -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 (file)
index 0000000..b464b15
--- /dev/null
@@ -0,0 +1 @@
+#include "../../gettext-tools/lib/atexit.c"