summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/yp/_yp_check.c3
-rw-r--r--lib/libc/yp/yp_bind.c3
-rw-r--r--lib/libc/yp/ypinternal.h8
3 files changed, 9 insertions, 5 deletions
diff --git a/lib/libc/yp/_yp_check.c b/lib/libc/yp/_yp_check.c
index 18b3a949808..16cd634116e 100644
--- a/lib/libc/yp/_yp_check.c
+++ b/lib/libc/yp/_yp_check.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: _yp_check.c,v 1.7 2015/01/16 16:48:51 deraadt Exp $ */
+/* $OpenBSD: _yp_check.c,v 1.8 2015/09/14 12:09:35 guenther Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@theos.com>
* All rights reserved.
@@ -49,3 +49,4 @@ _yp_check(char **dom)
return 1;
return 0;
}
+DEF_WEAK(_yp_check);
diff --git a/lib/libc/yp/yp_bind.c b/lib/libc/yp/yp_bind.c
index a4d32678679..dff4f6c9ba9 100644
--- a/lib/libc/yp/yp_bind.c
+++ b/lib/libc/yp/yp_bind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yp_bind.c,v 1.24 2015/09/13 20:57:28 guenther Exp $ */
+/* $OpenBSD: yp_bind.c,v 1.25 2015/09/14 12:09:35 guenther Exp $ */
/*
* Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
* All rights reserved.
@@ -271,6 +271,7 @@ _yp_unbind(struct dom_binding *ypb)
ypb->dom_client = NULL;
ypb->dom_socket = -1;
}
+DEF_WEAK(_yp_unbind);
int
yp_bind(const char *dom)
diff --git a/lib/libc/yp/ypinternal.h b/lib/libc/yp/ypinternal.h
index 6eabf9153a1..ea2c6415c8c 100644
--- a/lib/libc/yp/ypinternal.h
+++ b/lib/libc/yp/ypinternal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypinternal.h,v 1.9 2015/09/11 12:42:47 deraadt Exp $ */
+/* $OpenBSD: ypinternal.h,v 1.10 2015/09/14 12:09:35 guenther Exp $ */
/*
* Copyright (c) 1992, 1993, 1996 Theo de Raadt <deraadt@theos.com>
@@ -48,6 +48,8 @@ extern struct dom_binding *_ypbindlist;
extern char _yp_domain[HOST_NAME_MAX+1];
extern int _yplib_timeout;
-void _yp_unbind(struct dom_binding *);
-int _yp_check(char **);
+void _yp_unbind(struct dom_binding *);
+int _yp_check(char **);
+PROTO_NORMAL(_yp_unbind);
+PROTO_NORMAL(_yp_check);