$OpenBSD: patch-fzap_h,v 1.2 2003/12/30 23:02:16 pvalchev Exp $ --- fzap.h.orig 1999-02-15 16:50:43.000000000 -0700 +++ fzap.h 2003-12-07 01:06:58.000000000 -0700 @@ -1,8 +1,9 @@ +#include void DBG(char *fmt,...) { - va_list *ap; #ifdef DEBUG + va_list *ap; va_start(ap, fmt); fprintf(stderr, "\n[fzap:DBG]\t"); vfprintf(stderr, fmt, ap); @@ -47,12 +48,12 @@ int (*old_connect) (int, const struct so #endif -#ifdef __FreeBSD__ -#define LIB_PATH "/usr/lib/libc.so.3.0" -#define CONNECT(A,B,C) int connect(int A, const struct sockaddr *B, int C) -int (*old_connect)(int, const struct sockaddr *, int)=NULL; -#define BIND(A,B,C) int bind __P((int A, const struct sockaddr * B, int C)) -int (*old_bind)(int, const struct sockaddr *, int); +#ifdef BSD +#define LIB_PATH "/usr/lib/libc.so.23.1" +#define CONNECT(A,B,C) int connect(int A, const struct sockaddr *B, socklen_t C) +int (*old_connect)(int, const struct sockaddr *, socklen_t)=NULL; +#define BIND(A,B,C) int bind __P((int A, const struct sockaddr * B, socklen_t C)) +int (*old_bind)(int, const struct sockaddr *, socklen_t); #endif