|
Lines 1-36
Link Here
|
| 1 |
--- libasync.c.orig 2015-10-20 14:12:13 UTC |
|
|
| 2 |
+++ libasync.c |
| 3 |
@@ -96,13 +96,13 @@ |
| 4 |
|
| 5 |
#include <sys/types.h> |
| 6 |
#include <aio.h> |
| 7 |
-#if defined(solaris) || defined(linux) || defined(SCO_Unixware_gcc) || defined(__NetBSD__) |
| 8 |
+#if defined(solaris) || defined(linux) || defined(SCO_Unixware_gcc) || defined(__NetBSD__) || defined(__FreeBSD__) |
| 9 |
#else |
| 10 |
#include <sys/timers.h> |
| 11 |
#endif |
| 12 |
#include <sys/errno.h> |
| 13 |
#include <unistd.h> |
| 14 |
-#ifndef bsd4_4 |
| 15 |
+#if !defined(bsd4_4) && !defined(__FreeBSD__) |
| 16 |
#include <malloc.h> |
| 17 |
#endif |
| 18 |
#ifdef VXFS |
| 19 |
@@ -119,7 +119,7 @@ |
| 20 |
#include <stdlib.h> |
| 21 |
#endif |
| 22 |
|
| 23 |
-#if (defined(solaris) && defined(__LP64__)) || defined(__s390x__) || defined(FreeBSD) || defined(__NetBSD__) |
| 24 |
+#if (defined(solaris) && defined(__LP64__)) || defined(__s390x__) || defined(__FreeBSD__) || defined(__NetBSD__) |
| 25 |
/* If we are building for 64-bit Solaris, all functions that return pointers |
| 26 |
* must be declared before they are used; otherwise the compiler will assume |
| 27 |
* that they return ints and the top 32 bits of the pointer will be lost, |
| 28 |
@@ -135,7 +135,7 @@ |
| 29 |
void mbcopy(char *source, char *dest, size_t len); |
| 30 |
|
| 31 |
|
| 32 |
-#if !defined(solaris) && !defined(off64_t) && !defined(_OFF64_T) && !defined(__off64_t_defined) && !defined(SCO_Unixware_gcc) |
| 33 |
+#if !defined(solaris) && !defined(off64_t) && !defined(_OFF64_T) && !defined(__off64_t_defined) && !defined(SCO_Unixware_gcc) && !defined(__FreeBSD__) |
| 34 |
typedef long long off64_t; |
| 35 |
#endif |
| 36 |
#if defined(OSFV5) |