This is the mail archive of the gdb-patches@sources.redhat.com 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]

patch for compiles that don't define "unix"




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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]