=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/dirent.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -r1.21 -r1.22 --- src/include/dirent.h 2011/04/06 11:39:42 1.21 +++ src/include/dirent.h 2011/07/03 18:51:01 1.22 @@ -1,4 +1,4 @@ -/* $OpenBSD: dirent.h,v 1.21 2011/04/06 11:39:42 miod Exp $ */ +/* $OpenBSD: dirent.h,v 1.22 2011/07/03 18:51:01 jsg Exp $ */ /* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */ /*- @@ -84,6 +84,8 @@ #ifndef NULL #ifdef __GNUG__ #define NULL __null +#elif defined(__cplusplus) +#define NULL 0L #else #define NULL ((void *)0) #endif /* __GNUG__ */