Bug 252 - NULL undefined - compile error on FreeBSD 6.2 in memrchr.c
NULL undefined - compile error on FreeBSD 6.2 in memrchr.c
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.9
PC FreeBSD
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-19 16:49 MDT by Patrick Wolfe
Modified: 2007-06-19 17:01 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Wolfe 2007-06-19 16:49:41 MDT
sudo 1.6.9b1 compile failed on FreeBSD 6.2 in file memrchr.c, because the word "NULL" was undefined.  Adding the following to memrchr.c solved the issue.

#ifndef NULL
#define NULL 0
#endif
Comment 1 Todd C. Miller 2007-06-19 17:01:30 MDT
Fixed in cvs, will be included in 1.6.9b3