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.
This commit is contained in:
Tobias Brunner 2011-08-05 14:36:11 +02:00
parent d135a5a5a3
commit c5c10a2409
2 changed files with 14 additions and 0 deletions

View File

@ -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>

View File

@ -1,2 +1,3 @@
shorter-timeout.patch
configure-logging.patch
llabs-needs-c99.patch