| 1 |
Description: Fix FTBFS on kfreebsd-* archs |
| 2 |
libgarmin-priv.h defines O_NOATIME which is then declared as an enum |
| 3 |
by fcntl.h, causing a compilation error. |
| 4 |
Moving the include of fcntl.h above libgarmin-priv.h fixes the |
| 5 |
problem. |
| 6 |
Author: Gilles Filippini <[email protected]> |
| 7 |
Forwarded: no |
| 8 |
Index: libgarmin/src/garmin_mdr.c |
| 9 |
=================================================================== |
| 10 |
--- libgarmin.orig/src/garmin_mdr.c 2011-04-09 00:34:20.000000000 +0200 |
| 11 |
+++ libgarmin/src/garmin_mdr.c 2011-04-09 00:34:27.000000000 +0200 |
| 12 |
@@ -2,6 +2,7 @@ |
| 13 |
#include <stdarg.h> |
| 14 |
#include <stdlib.h> |
| 15 |
#include <unistd.h> |
| 16 |
+#include <fcntl.h> |
| 17 |
#include "libgarmin.h" |
| 18 |
#include "libgarmin_priv.h" |
| 19 |
#include "garmin_fat.h" |
| 20 |
@@ -9,7 +10,6 @@ |
| 21 |
#include "garmin_mdr.h" |
| 22 |
#include <sys/types.h> |
| 23 |
#include <sys/stat.h> |
| 24 |
-#include <fcntl.h> |
| 25 |
#include "GarminTypedef.h" |
| 26 |
|
| 27 |
struct hdr_mdr_t |