-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |