From: Bruno Haible Date: Wed, 27 Aug 2003 17:45:21 +0000 (+0000) Subject: Portability fix for OSF/1 4.0. X-Git-Tag: v0.13~295 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6245db336510b827e9f60cba075dac780a46864e;p=thirdparty%2Fgettext.git Portability fix for OSF/1 4.0. --- diff --git a/gettext-tools/lib/ChangeLog b/gettext-tools/lib/ChangeLog index 2db8f9439..5890f5b8b 100644 --- a/gettext-tools/lib/ChangeLog +++ b/gettext-tools/lib/ChangeLog @@ -1,3 +1,7 @@ +2003-08-27 Bruno Haible + + * getopt.h: Include config.h. Needed for DLL_VARIABLE on OSF/1 4.0. + 2003-08-24 Bruno Haible * binary-io.h: Include , to avoid a compilation error when diff --git a/gettext-tools/lib/getopt.h b/gettext-tools/lib/getopt.h index 3b0732fdb..5acd31036 100644 --- a/gettext-tools/lib/getopt.h +++ b/gettext-tools/lib/getopt.h @@ -23,6 +23,13 @@ # define _GETOPT_H 1 #endif +/* Ensure that DLL_VARIABLE is defined. Since on OSF/1 4.0 includes + , and is not a prerequisite for using , this + file can be included without a prior "#include . */ +#if HAVE_CONFIG_H +# include +#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 , but