]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/protos.h
Fix OPENSSL include in lib and findlib
[bacula/bacula] / bacula / src / lib / protos.h
index 048872ab0d84ca05c0fb81cbe516e71bde5d8630..ede58ef2343be3da04447d52610b6418225edc8a 100644 (file)
@@ -76,7 +76,12 @@ BSOCK *    bnet_connect          (JCR *jcr, int retry_interval,
 void       bnet_close            (BSOCK *bsock);
 BSOCK *    init_bsock            (JCR *jcr, int sockfd, const char *who, const char *ip,
                                   int port, struct sockaddr *client_addr);
-int       bnet_get_peer           (BSOCK *bs, char *buf, socklen_t buflen);
+#ifdef WIN32
+#ifndef socklen_t
+#define socklen_t int
+#endif
+#endif
+int        bnet_get_peer           (BSOCK *bs, char *buf, socklen_t buflen);
 BSOCK *    dup_bsock             (BSOCK *bsock);
 void       term_bsock            (BSOCK *bsock);
 const char *bnet_strerror         (BSOCK *bsock);