diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-08-05 14:36:11 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-08-05 14:40:01 +0200 |
commit | c5c10a2409a56663f15babc49d437ed27bb39120 (patch) | |
tree | db2326a987b6ef7602a3b326784177a6ca92d31b /packages | |
parent | d135a5a5a37a33c175c438aef727a5f489230ec2 (diff) | |
download | strongswan-c5c10a2409a56663f15babc49d437ed27bb39120.tar.bz2 strongswan-c5c10a2409a56663f15babc49d437ed27bb39120.tar.xz |
maemo: Define _GNU_SOURCE to make llabs available.
llabs is defined in C99, thus requires e.g. _USE_ISOC99 to be defined.
features.h on Maemo defines _USE_ISOC99 in fewer cases than newer versions
of it do on other platforms.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/maemo-strongswan/debian/patches/llabs-needs-c99.patch | 13 | ||||
-rw-r--r-- | packages/maemo-strongswan/debian/patches/series | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/packages/maemo-strongswan/debian/patches/llabs-needs-c99.patch b/packages/maemo-strongswan/debian/patches/llabs-needs-c99.patch new file mode 100644 index 000000000..25aced4a6 --- /dev/null +++ b/packages/maemo-strongswan/debian/patches/llabs-needs-c99.patch @@ -0,0 +1,13 @@ +llabs is defined in C99. features.h on other platforms enables C99 features +automatically, here we explicitly enable them with _GNU_SOURCE (which enables +also a lot of other things). +--- a/src/libstrongswan/utils.c ++++ b/src/libstrongswan/utils.c +@@ -14,6 +14,7 @@ + * for more details. + */ + ++#define _GNU_SOURCE + #include "utils.h" + + #include <sys/stat.h> diff --git a/packages/maemo-strongswan/debian/patches/series b/packages/maemo-strongswan/debian/patches/series index 7f11cae60..16a3af5ca 100644 --- a/packages/maemo-strongswan/debian/patches/series +++ b/packages/maemo-strongswan/debian/patches/series @@ -1,2 +1,3 @@ shorter-timeout.patch configure-logging.patch +llabs-needs-c99.patch |