]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Portability fix for OSF/1 4.0.
authorBruno Haible <bruno@clisp.org>
Wed, 27 Aug 2003 17:45:21 +0000 (17:45 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:55 +0000 (12:10 +0200)
gettext-tools/lib/ChangeLog
gettext-tools/lib/getopt.h

index 2db8f94392c8903ab1bcec9ecf623f4cd33a74f6..5890f5b8b4f6f2e137ce5169c154ab8031fe3459 100644 (file)
@@ -1,3 +1,7 @@
+2003-08-27  Bruno Haible  <bruno@clisp.org>
+
+       * getopt.h: Include config.h. Needed for DLL_VARIABLE on OSF/1 4.0.
+
 2003-08-24  Bruno Haible  <bruno@clisp.org>
 
        * binary-io.h: Include <stdio.h>, to avoid a compilation error when
index 3b0732fdbefceb882802c98948405dfc2eff8565..5acd310363eb0b823ed5b0d087e40881e1456a1f 100644 (file)
 # define _GETOPT_H 1
 #endif
 
+/* Ensure that DLL_VARIABLE is defined.  Since on OSF/1 4.0 <stdlib.h> includes
+   <getopt.h>, and <config.h> is not a prerequisite for using <stdlib.h>, this
+   file can be included without a prior "#include <config.h>.  */
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 /* If __GNU_LIBRARY__ is not already defined, either we are being used
    standalone, or this is the first header included in the source file.
    If we are being used with glibc, we need to include <features.h>, but