From: Frank Lahm Date: Wed, 2 Mar 2011 10:37:41 +0000 (+0100) Subject: Merge master X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=commitdiff_plain;h=5ab4f0463c00263b3d842f1e1a3648ecf35b4d65 Merge master --- 5ab4f0463c00263b3d842f1e1a3648ecf35b4d65 diff --cc include/atalk/adouble.h index daa0b0ca,18422eca..8e0b11e1 --- a/include/atalk/adouble.h +++ b/include/atalk/adouble.h @@@ -33,26 -34,65 +33,24 @@@ #include #endif -/* ------------------- - * need pread() and pwrite() - */ -#ifdef HAVE_PREAD - -#ifndef HAVE_PWRITE -#undef HAVE_PREAD -#endif - -#endif - -#ifdef HAVE_PWRITE -#ifndef HAVE_PREAD -#undef HAVE_PWRITE -#endif -#endif - -/* - Still have to figure out which platforms really - need _XOPEN_SOURCE defined for pread. -*/ -#if defined(HAVE_PREAD) && !defined(SOLARIS) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(TRU64) -#ifndef _XOPEN_SOURCE -#define _XOPEN_SOURCE 500 -#endif -#endif - +#include #include #include - -#ifdef HAVE_UNISTD_H -#undef __USE_MISC -#define __USE_MISC #include -#endif - -#include - -#ifdef HAVE_FCNTL_H #include -#endif - #ifdef USE_MMAPPED_HEADERS #include - #endif -#ifdef HAVE_SYS_TIME_H #include -#endif -#include -/* version info */ -#define AD_VERSION1 0x00010000 -#define SFM_VERSION AD_VERSION1 +#include +#include +/* version info */ #define AD_VERSION2 0x00020000 -#define AD_VERSION2_OSX 0x00020001 -/* - #define AD_VERSION1_ADS 0x00010002 -*/ -#define AD_VERSION1_SFM 0x00010003 +#define AD_VERSION_EA 0x00020002 + +/* default */ #define AD_VERSION AD_VERSION2 /*