]> arthur.barton.de Git - netatalk.git/blobdiff - etc/uams/uams_passwd.c
Solaris 'compile hell' stuff...
[netatalk.git] / etc / uams / uams_passwd.c
index dd0135dfba6621b6f4feb8142d3bd3f7bb48c924..a43a7962887ab0a601ac1791b5b9e2fa58beff70 100644 (file)
@@ -1,17 +1,20 @@
 /*
- * $Id: uams_passwd.c,v 1.19.2.1.2.6 2004-02-14 02:47:15 didg Exp $
+ * $Id: uams_passwd.c,v 1.19.2.1.2.7 2004-02-20 20:53:14 bfernhomberg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) 
  * All Rights Reserved.  See COPYRIGHT.
  */
 
-#define _XOPEN_SOURCE 500 /* for crypt() */
-
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif /* HAVE_CONFIG_H */
 
+/* crypt needs _XOPEN_SOURCE 500 at least on BSD, but that breaks Solaris compile */
+#ifndef SOLARIS
+#define _XOPEN_SOURCE 500 /* for crypt() */
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 /* STDC check */