]> code.citadel.org Git - citadel.git/blobdiff - citadel/auth.c
- port to Cygwin (DLL support, etc.)
[citadel.git] / citadel / auth.c
index 927c6ddb9378852f9ffe7e7b35f8380a716944b5..a62d6003ca7ea45f25b4f7ff7b64bb83dfb9d74f 100644 (file)
@@ -1,13 +1,18 @@
 /*
- * auth.c -- system-level password checking for autologin
+ * $Id$
+ *
+ * system-level password checking for autologin
  * by Nathan Bryant, March 1999
  *
- * $Id$
  */
 
-#ifdef linux
-#define _XOPEN_SOURCE          /* needed for crypt() */
-#define _XOPEN_SOURCE_EXTENDED /* needed for strdup() */
+#ifdef DLL_EXPORT
+#define IN_LIBCIT
+#endif
+
+#if defined(__linux) || defined(__sun) /* needed for crypt(): */
+#define _XOPEN_SOURCE
+#define _XOPEN_SOURCE_EXTENDED 1
 #endif
 
 #include <pwd.h>