=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/dirent.h,v retrieving revision 1.21 retrieving revision 1.22 diff -c -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 **** ! /* $OpenBSD: dirent.h,v 1.21 2011/04/06 11:39:42 miod Exp $ */ /* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */ /*- --- 1,4 ---- ! /* $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,89 **** --- 84,91 ---- #ifndef NULL #ifdef __GNUG__ #define NULL __null + #elif defined(__cplusplus) + #define NULL 0L #else #define NULL ((void *)0) #endif /* __GNUG__ */