aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2013-08-20 09:07:59 +0200
committerMatthias Andree <matthias.andree@gmx.de>2016-12-11 22:06:12 +0100
commitf5d8f0d0ca5dcad40f4d2b69babb92724c8bd315 (patch)
tree092908be2a134dab50ddce8afc05b4ab06197545
parent895a0128c1f7869e0d09af681d86ba019315cf7f (diff)
downloadfetchmail-f5d8f0d0ca5dcad40f4d2b69babb92724c8bd315.tar.gz
fetchmail-f5d8f0d0ca5dcad40f4d2b69babb92724c8bd315.tar.bz2
fetchmail-f5d8f0d0ca5dcad40f4d2b69babb92724c8bd315.zip
#define __EXTENSIONS__ to have Solaris expose ffs() from strings.h
-rw-r--r--uid_db.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/uid_db.c b/uid_db.c
index 55bdfc7b..97b1c2ba 100644
--- a/uid_db.c
+++ b/uid_db.c
@@ -8,11 +8,14 @@
6.3.17 release, including the OpenSSL exemption.
*/
+/* Have Solaris expose ffs() from strings.h: */
+#define __EXTENSIONS__
+
/* includes */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <strings.h> // ffs() lives here
+#include <strings.h> // ffs() lives here - needs #define on Solaris.
#include "xmalloc.h"
#include "uid_db.h"