[OpenAFS-devel] NULL not defined with current includes on HP-UX 11.x
Neulinger, Nathan
nneul@umr.edu
Tue, 19 Mar 2002 15:09:54 -0600
This worked equally well, probably better...
Index: dir.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
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 */
=20
+# ifdef HAVE_UNISTD_H
+# include <unistd.h>
+# endif
# include <sys/types.h>
# include <errno.h>
# include "dir.h"
-- Nathan
------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-4841
Computing Services Fax: (573) 341-4216
> -----Original Message-----
> From: Neulinger, Nathan=20
> Sent: Tuesday, March 19, 2002 3:06 PM
> To: Nickolai Zeldovich; openafs-devel@openafs.org
> Subject: RE: [OpenAFS-devel] NULL not defined with current=20
> includes on HP-UX 11.x
>=20
>=20
> Looks like stddef.h might include it. I figured it that=20
> change would be
> safer. I suppose an extra include with an ifdef for hpux only would be
> equally ok.
>=20
> -- Nathan
>=20
> ------------------------------------------------------------
> Nathan Neulinger EMail: nneul@umr.edu
> University of Missouri - Rolla Phone: (573) 341-4841
> Computing Services Fax: (573) 341-4216
>=20
>=20
> > -----Original Message-----
> > From: Nickolai Zeldovich [mailto:kolya@MIT.EDU]=20
> > Sent: Tuesday, March 19, 2002 3:02 PM
> > To: openafs-devel@openafs.org
> > Subject: Re: [OpenAFS-devel] NULL not defined with current=20
> > includes on HP-UX 11.x
> >=20
> >=20
> > 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?
> >=20
> > -- kolya
> > _______________________________________________
> > OpenAFS-devel mailing list
> > OpenAFS-devel@openafs.org
> > https://lists.openafs.org/mailman/listinfo/openafs-devel
> >=20
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
>=20