aboutsummaryrefslogtreecommitdiff
path: root/gdb/rdi-share/host.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-29 01:19:23 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-29 01:19:23 +0000
commita80163397d548b79620836b33babd525fdbe28c6 (patch)
tree6bfed4d0b6cfa13f4c529361f64f967a19da2834 /gdb/rdi-share/host.h
parent5e91c3b4311049f4ef00ded805872c282810c5c4 (diff)
downloadgdb-a80163397d548b79620836b33babd525fdbe28c6.zip
gdb-a80163397d548b79620836b33babd525fdbe28c6.tar.gz
gdb-a80163397d548b79620836b33babd525fdbe28c6.tar.bz2
* rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
* rdi-share/hostchan.h (__unix): Hack, provide a default value. * rdi-share/host.h (__unix): Hack, define when __NetBSD__. * TODO: Update. * MAINTAINERS: Update. arm-elf builds.
Diffstat (limited to 'gdb/rdi-share/host.h')
-rw-r--r--gdb/rdi-share/host.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/rdi-share/host.h b/gdb/rdi-share/host.h
index 3c1565b..53b6568 100644
--- a/gdb/rdi-share/host.h
+++ b/gdb/rdi-share/host.h
@@ -37,13 +37,14 @@
#endif
#endif
-#ifdef unix /* A temporary sop to older compilers */
+/* A temporary sop to older compilers */
+#if defined (__NetBSD__) || defined (unix)
# ifndef __unix /* (good for long-term portability?) */
# define __unix 1
# endif
#endif
-#ifdef __unix
+#if defined(__unix)
/* Generic unix -- hopefully a split into other variants will not be */
/* needed. However, beware the 'bsd' test above and safe_toupper etc. */
/* which cope with backwards (pre-posix/X/open) unix compatility. */