Bug 252

Summary: NULL undefined - compile error on FreeBSD 6.2 in memrchr.c
Product: Sudo Reporter: Patrick Wolfe <pwolfe>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.6.9   
Hardware: PC   
OS: FreeBSD   

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