aboutsummaryrefslogtreecommitdiffstats
path: root/uid_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'uid_db.c')
-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"