Skip to content

Commit

Permalink
re-add missing linux macro patch
Browse files Browse the repository at this point in the history
  • Loading branch information
sfabbro committed Feb 22, 2016
1 parent 599d07b commit 2ca21c8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions patches/cfitsio-off_t.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Source: Patch coming from Debian packaging
Description: change defs from linux to __linux__

--- cfitsio.orig/fitsio.h
+++ cfitsio/fitsio.h
@@ -69,7 +69,7 @@
# define _MIPS_SZLONG 64
#endif

-#if defined(linux) || defined(__APPLE__) || defined(__sgi)
+#if defined(__linux__) || defined(__APPLE__) || defined(__sgi)
# include <sys/types.h> /* apparently needed on debian linux systems */
#endif /* to define off_t */

@@ -83,10 +83,10 @@
/* on whether _LARGEFILE_SOURCE is defined in sys/feature_tests.h */
/* (at least on Solaris platforms using cc) */

-/* Debian systems require: "(defined(linux) && defined(__off_t_defined))" */
+/* Debian systems require: "(defined(__linux__) && defined(__off_t_defined))" */
/* the mingw-w64 compiler requires: "(defined(__MINGW32__) && defined(_OFF_T_DEFINED))" */
#if defined(_OFF_T) \
- || (defined(linux) && defined(__off_t_defined)) \
+ || (defined(__linux__) && defined(__off_t_defined)) \
|| (defined(__MINGW32__) && defined(_OFF_T_DEFINED)) \
|| defined(_MIPS_SZLONG) || defined(__APPLE__) || defined(_AIX)
# define OFF_T off_t

0 comments on commit 2ca21c8

Please sign in to comment.