This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Sun, Mar 26, 2006 at 03:55:48PM +0800, Randolph Chung wrote:
+# When building on HPUX, we need to define _XOPEN_SOURCE_EXTENDED to get +# proper prototypes. +case $host_os in +hpux*) + AH_VERBATIM([_XOPEN_SOURCE_EXTENDED], + [/* Define to 1 if on HPUX. */ +#ifndef _XOPEN_SOURCE_EXTENDED +# undef _XOPEN_SOURCE_EXTENDED +#endif])dnl + AC_DEFINE([_XOPEN_SOURCE_EXTENDED]) + ;; +esac
I am most confused as to what you are trying to do. You should leave
_XOPEN_SOURCE_EXTENDED alone on non-HP/UX, and make sure it is
appropriately defined on HP/UX.
#ifndef followed by #undef doesn't do much. And I don't think AH_VERBATIM does what you think; it changes the generated config.in, not the generated config.h, so it affects all platforms.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |