mirror of
https://github.com/strongswan/strongswan.git
synced 2025-11-22 00:01:45 -05:00
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.
14 lines
360 B
Diff
14 lines
360 B
Diff
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>
|