Fix build problems on Mac OS X.
authornbk <nbk>
Tue, 10 Jan 2006 14:33:16 +0000 (14:33 +0000)
committernbk <nbk>
Tue, 10 Jan 2006 14:33:16 +0000 (14:33 +0000)
Patch from Steven Simon <simon.s@apple.com>

src/modules/rlm_otp/otp_state.c
src/modules/rlm_otp/otp_state.h

index 3a9cf09..3556a08 100644 (file)
@@ -35,7 +35,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/socket.h>
-#ifdef __linux__
+#if defined(__linux__) || defined(__APPLE__)
 #include <sys/un.h>
 #endif
 
index 89ccb69..580027e 100644 (file)
@@ -26,8 +26,8 @@
 
 static int otp_state_parse(const char *, size_t, const char *,
                            otp_user_state_t *, const char *);
-static int otp_state_unparse(char *, size_t, const char *, otp_user_state_t *,
-                             const char *);
+static ssize_t otp_state_unparse(char *, size_t, const char *,
+                                otp_user_state_t *, const char *);
 static int xread(lsmd_fd_t *, char *, size_t, const char *);
 static int xwrite(lsmd_fd_t *, const char *, size_t, const char *);
 static int otp_state_connect(const char *, const char *);