Check HAVE_VALUES_H before trying to include <values.h>; use

<sys/types.h> if we don't.  (Reported by Gregor Hoffleit
<flight@mathi.uni-heidelberg.de>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1819 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-09-24 15:46:11 +00:00
parent 011bf818c1
commit a3577056d4

View file

@ -30,7 +30,11 @@
#include <Foundation/NSException.h>
#include <math.h>
#ifndef __WIN32__
#if HAVE_VALUES_H
#include <values.h> // This gets BITSPERBYTE on Solaris
#else
#include <sys/types.h>
#endif
#include <netinet/in.h> // for byte-conversion
#endif /* !__WIN32__ */