tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: paths.h and Opensolaris?

On Mon, Nov 24, 2008 at 10:08:27AM +0100, Hubert Feyrer wrote:
> On Mon, 24 Nov 2008, Carl Brewer wrote:
>> daemon.c:42:19: paths.h: No such file or directory
>> daemon.c: In function `daemon':
>> daemon.c:66: error: `_PATH_DEVNULL' undeclared (first use in this function)
>> daemon.c:66: error: (Each undeclared identifier is reported only once
> At least the Solaris 10 that I have here[1] neither has paths.h nor  
> _PATH_DEVNULL defined. As such, the software assuming such existance  
> should be fixed.

#ifdef __sunos__
#define _PATH_DEVNULL "/dev/null"
#include <paths.h>

or something like that.


Home | Main Index | Thread Index | Old Index