projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
324ad5c
)
Fix build problems on Mac OS X.
author
nbk
<nbk>
Tue, 10 Jan 2006 14:33:16 +0000
(14:33 +0000)
committer
nbk
<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
patch
|
blob
|
history
src/modules/rlm_otp/otp_state.h
patch
|
blob
|
history
diff --git
a/src/modules/rlm_otp/otp_state.c
b/src/modules/rlm_otp/otp_state.c
index
3a9cf09
..
3556a08
100644
(file)
--- a/
src/modules/rlm_otp/otp_state.c
+++ b/
src/modules/rlm_otp/otp_state.c
@@
-35,7
+35,7
@@
#include <fcntl.h>
#include <unistd.h>
#include <sys/socket.h>
-#if
def __linux__
+#if
defined(__linux__) || defined(__APPLE__)
#include <sys/un.h>
#endif
diff --git
a/src/modules/rlm_otp/otp_state.h
b/src/modules/rlm_otp/otp_state.h
index
89ccb69
..
580027e
100644
(file)
--- a/
src/modules/rlm_otp/otp_state.h
+++ b/
src/modules/rlm_otp/otp_state.h
@@
-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 *);