mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
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:
parent
011bf818c1
commit
a3577056d4
1 changed files with 4 additions and 0 deletions
|
@ -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__ */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue