This worked equally well, probably better... Index: dir.c =================================================================== RCS file: /cvs/openafs/src/dir/dir.c,v retrieving revision 1.7 diff -u -r1.7 dir.c --- dir.c 2002/02/18 21:09:47 1.7 +++ dir.c 2002/03/19 21:09:20 @@ -105,6 +105,9 @@ #define IsEmpty afs_dir_IsEmpty #else /* KERNEL */ +# ifdef HAVE_UNISTD_H +# include <unistd.h> +# endif # include <sys/types.h> # include <errno.h> # include "dir.h"
-- Nathan ------------------------------------------------------------ Nathan Neulinger EMail: [EMAIL PROTECTED] University of Missouri - Rolla Phone: (573) 341-4841 Computing Services Fax: (573) 341-4216 > -----Original Message----- > From: Neulinger, Nathan > Sent: Tuesday, March 19, 2002 3:06 PM > To: Nickolai Zeldovich; [EMAIL PROTECTED] > Subject: RE: [OpenAFS-devel] NULL not defined with current > includes on HP-UX 11.x > > > Looks like stddef.h might include it. I figured it that > change would be > safer. I suppose an extra include with an ifdef for hpux only would be > equally ok. > > -- Nathan > > ------------------------------------------------------------ > Nathan Neulinger EMail: [EMAIL PROTECTED] > University of Missouri - Rolla Phone: (573) 341-4841 > Computing Services Fax: (573) 341-4216 > > > > -----Original Message----- > > From: Nickolai Zeldovich [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, March 19, 2002 3:02 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [OpenAFS-devel] NULL not defined with current > > includes on HP-UX 11.x > > > > > > It seems like including the right header (unistd.h?) to define > > NULL for us might be cleaner.. Do you know if unistd.h does > > infact declare NULL on HP-UX 11.x? > > > > -- kolya > > _______________________________________________ > > OpenAFS-devel mailing list > > [EMAIL PROTECTED] > > https://lists.openafs.org/mailman/listinfo/openafs-devel > > > _______________________________________________ > OpenAFS-devel mailing list > [EMAIL PROTECTED] > https://lists.openafs.org/mailman/listinfo/openafs-devel > _______________________________________________ OpenAFS-devel mailing list [EMAIL PROTECTED] https://lists.openafs.org/mailman/listinfo/openafs-devel
