This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
patch for compiles that don't define "unix"
- To: gdb-patches at sources dot redhat dot com
- subject: patch for compiles that don't define "unix"
- From: matthew green <mrg at eterna dot com dot au>
- Date: Sun, 10 Dec 2000 20:21:24 +1100
- organisation: Red Hat, Inc.
hi folks.
NetBSD compilers don't (at least, shouldn't -- some ports still do)
define `unix' or `__unix__'. this causes the test for a unix-like
platform in gdb/rdi-share/host.h to fail. the following patch
fixes that.
thanks,
.mrg.
2000-12-10 matthew green <mrg@eterna.com.au>
* rdi-share/host.h: Look for `__unix__' as well as unix and `__unix.'
Index: gdb/rdi-share/host.h
===================================================================
RCS file: /cvs/src/src/gdb/rdi-share/host.h,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 host.h
*** host.h 1999/04/16 01:34:27 1.1.1.1
--- host.h 2000/12/10 09:09:02
***************
*** 37,43 ****
#endif
#endif
! #ifdef unix /* A temporary sop to older compilers */
# ifndef __unix /* (good for long-term portability?) */
# define __unix 1
# endif
--- 37,44 ----
#endif
#endif
! /* A temporary sop to older compilers */
! #if defined(unix) || defined(__unix__)
# ifndef __unix /* (good for long-term portability?) */
# define __unix 1
# endif