use dirfd-autoconf test
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@741 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
1eb9cd9902
commit
c56364c6e4
@ -154,6 +154,10 @@ else
|
||||
fi
|
||||
AC_SUBST(SOUNDOBJ)
|
||||
|
||||
#
|
||||
# dirfd
|
||||
#
|
||||
UTILS_FUNC_DIRFD
|
||||
|
||||
#
|
||||
# debugging
|
||||
|
20
disk.c
20
disk.c
@ -20,16 +20,6 @@
|
||||
|
||||
#include "disk.h"
|
||||
|
||||
#if (defined(sun) && (defined(__svr4__) || defined(__SVR4)))
|
||||
#define SOLARIS
|
||||
#endif
|
||||
|
||||
#if (defined(SOLARIS) || defined(__hpux))
|
||||
#define DIRFD(a) ((a)->dd_fd)
|
||||
#else
|
||||
#define DIRFD(a) (dirfd(a))
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
@ -41,6 +31,16 @@
|
||||
#include <utime.h>
|
||||
#include <time.h> /* ctime */
|
||||
|
||||
#if defined(HAVE_DIRFD)
|
||||
#define DIRFD(a) (dirfd(a))
|
||||
#else
|
||||
#define DIRFD(a) ((a)->DIR_FD_MEMBER_NAME)
|
||||
#endif
|
||||
|
||||
/* TODO: let autoconf figure out everything below... */
|
||||
#if (defined(sun) && (defined(__svr4__) || defined(__SVR4)))
|
||||
#define SOLARIS
|
||||
#endif
|
||||
|
||||
#if (defined(SOLARIS) || defined (__hpux) || defined(__BEOS__))
|
||||
#include <sys/statvfs.h> /* solaris statvfs */
|
||||
|
Loading…
Reference in New Issue
Block a user