diff options
| author | jtc <jtc@NetBSD.org> | 1993-11-13 01:44:59 +0000 |
|---|---|---|
| committer | jtc <jtc@NetBSD.org> | 1993-11-13 01:44:59 +0000 |
| commit | 09a53cd2769bb00d6d1ea531979ed367331a454e (patch) | |
| tree | b8afd6802e2517be0967629aa951694b46291d68 /include/stdlib.h | |
| parent | a0b984051ae73e81c87e21c92c3ee2a46f7e531f (diff) | |
stdlib.h should define NULL -- Ansi C, Section 7.10.
Diffstat (limited to 'include/stdlib.h')
| -rw-r--r-- | include/stdlib.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 4156c6c6748..1795bac6694 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91 - * $Id: stdlib.h,v 1.9 1993/10/22 17:52:28 jtc Exp $ + * $Id: stdlib.h,v 1.10 1993/11/13 01:44:59 jtc Exp $ */ #ifndef _STDLIB_H_ @@ -57,6 +57,10 @@ typedef struct { long rem; /* remainder */ } ldiv_t; +#ifndef NULL +#define NULL 0 +#endif + #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0 |
