From: bfernhomberg Date: Mon, 9 Feb 2004 23:44:32 +0000 (+0000) Subject: fix: including sys/time.h before _XOPEN_SOURCE 500/unistd.h breaks pwrite64 X-Git-Tag: netatalk-2-0-alpha2~17 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=9bf68ef0cfdc237e1d22b3c49b8f75f166b8895e;p=netatalk.git fix: including sys/time.h before _XOPEN_SOURCE 500/unistd.h breaks pwrite64 --- diff --git a/include/atalk/adouble.h b/include/atalk/adouble.h index dbf222bb..fda39cd9 100644 --- a/include/atalk/adouble.h +++ b/include/atalk/adouble.h @@ -1,5 +1,5 @@ /* - * $Id: adouble.h,v 1.21.6.8 2004-02-07 19:46:08 didg Exp $ + * $Id: adouble.h,v 1.21.6.9 2004-02-09 23:44:32 bfernhomberg Exp $ * Copyright (c) 1990,1991 Regents of The University of Michigan. * All Rights Reserved. * @@ -28,9 +28,6 @@ #ifdef HAVE_CONFIG_H #include #endif -#ifdef HAVE_SYS_TIME_H -#include -#endif /* ------------------- * need pread() and pwrite() @@ -52,9 +49,10 @@ #endif #ifdef HAVE_PREAD -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 500 +#ifdef _XOPEN_SOURCE +#undef _XOPEN_SOURCE #endif +#define _XOPEN_SOURCE 500 #endif #ifdef HAVE_UNISTD_H @@ -71,6 +69,9 @@ #include #include #include +#ifdef HAVE_SYS_TIME_H +#include +#endif #include /* version info */