summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/dirent.h4
-rw-r--r--include/stdio.h6
-rw-r--r--include/string.h6
-rw-r--r--include/time.h4
-rw-r--r--include/unistd.h4
-rw-r--r--sys/sys/param.h6
6 files changed, 21 insertions, 9 deletions
diff --git a/include/dirent.h b/include/dirent.h
index 89718362331..54291f535a1 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dirent.h,v 1.5 1999/06/11 22:47:48 espie Exp $ */
+/* $OpenBSD: dirent.h,v 1.6 1999/09/17 13:13:46 espie Exp $ */
/* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */
/*-
@@ -83,7 +83,7 @@ typedef struct _dirdesc {
#ifndef NULL
#ifdef __GNUG__
-#define NULL __null
+#define NULL __null
#else
#define NULL 0
#endif
diff --git a/include/stdio.h b/include/stdio.h
index ed1fb32c7dd..50e0987e381 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdio.h,v 1.10 1998/11/20 11:18:26 d Exp $ */
+/* $OpenBSD: stdio.h,v 1.11 1999/09/17 13:13:46 espie Exp $ */
/* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */
/*-
@@ -55,8 +55,12 @@ typedef _BSD_SIZE_T_ size_t;
#endif
#ifndef NULL
+#ifdef __GNUG__
+#define NULL __null
+#else
#define NULL 0
#endif
+#endif
/*
* This is fairly grotesque, but pure ANSI code must not inspect the
diff --git a/include/string.h b/include/string.h
index d170174f80e..7be111260a7 100644
--- a/include/string.h
+++ b/include/string.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: string.h,v 1.5 1998/11/20 11:18:26 d Exp $ */
+/* $OpenBSD: string.h,v 1.6 1999/09/17 13:13:46 espie Exp $ */
/* $NetBSD: string.h,v 1.6 1994/10/26 00:56:30 cgd Exp $ */
/*-
@@ -46,8 +46,12 @@ typedef _BSD_SIZE_T_ size_t;
#endif
#ifndef NULL
+#ifdef __GNUG__
+#define NULL __null
+#else
#define NULL 0
#endif
+#endif
#include <sys/cdefs.h>
diff --git a/include/time.h b/include/time.h
index b1754e83b76..e4c39e43a75 100644
--- a/include/time.h
+++ b/include/time.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: time.h,v 1.7 1999/06/11 22:47:48 espie Exp $ */
+/* $OpenBSD: time.h,v 1.8 1999/09/17 13:13:46 espie Exp $ */
/* $NetBSD: time.h,v 1.9 1994/10/26 00:56:35 cgd Exp $ */
/*
@@ -49,7 +49,7 @@
#ifndef NULL
#ifdef __GNUG__
-#define NULL __null
+#define NULL __null
#else
#define NULL 0
#endif
diff --git a/include/unistd.h b/include/unistd.h
index 449295d9b09..e2d017ab15a 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.26 1999/06/11 22:47:47 espie Exp $ */
+/* $OpenBSD: unistd.h,v 1.27 1999/09/17 13:13:46 espie Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -49,7 +49,7 @@
#ifndef NULL
#ifdef __GNUG__
-#define NULL __null
+#define NULL __null
#else
#define NULL 0 /* null pointer constant */
#endif
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 1ae1d638974..e4909217e3b 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.23 1999/02/28 06:25:30 deraadt Exp $ */
+/* $OpenBSD: param.h,v 1.24 1999/09/17 13:13:46 espie Exp $ */
/* $NetBSD: param.h,v 1.23 1996/03/17 01:02:29 thorpej Exp $ */
/*-
@@ -49,8 +49,12 @@
#define OpenBSD2_5 1 /* OpenBSD 2.5 */
#ifndef NULL
+#ifdef __GNUG__
+#define NULL __null
+#else
#define NULL 0
#endif
+#endif
#ifndef _LOCORE
#include <sys/types.h>