diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-10-31 16:48:50 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-10-31 16:48:50 +0000 |
commit | f54898bac9c329efdb898503f10900770c7a7738 (patch) | |
tree | 1a21ad38082a762df221755108771873b9bfcb4b /winsup/cygwin/include/sys | |
parent | 2345b582f25bde3f71c79662135371dcd239295f (diff) | |
download | cygnal-f54898bac9c329efdb898503f10900770c7a7738.tar.gz cygnal-f54898bac9c329efdb898503f10900770c7a7738.tar.bz2 cygnal-f54898bac9c329efdb898503f10900770c7a7738.zip |
* include/sys/param.h: Include stddef.h to define NULL.
Diffstat (limited to 'winsup/cygwin/include/sys')
-rw-r--r-- | winsup/cygwin/include/sys/param.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/include/sys/param.h b/winsup/cygwin/include/sys/param.h index 70c4ac98e..f2a7473ee 100644 --- a/winsup/cygwin/include/sys/param.h +++ b/winsup/cygwin/include/sys/param.h @@ -13,6 +13,9 @@ /* Linux includes limits.h, but this is not universally done. */ #include <limits.h> +#define __need_NULL +#include <stddef.h> + /* Max number of open files. The Posix version is OPEN_MAX. */ /* Number of fds is virtually unlimited in cygwin, but we must provide some reasonable value for Posix conformance */ @@ -41,10 +44,6 @@ BSD variant of this constant. */ #define DEV_BSIZE 1024 -#ifndef NULL -#define NULL 0L -#endif - #ifndef NBBY #define NBBY 8 #endif |