summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/setbuffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/setbuffer.c')
-rw-r--r--lib/libc/stdio/setbuffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/setbuffer.c b/lib/libc/stdio/setbuffer.c
index 8725ff79558..b67d7659494 100644
--- a/lib/libc/stdio/setbuffer.c
+++ b/lib/libc/stdio/setbuffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: setbuffer.c,v 1.5 2005/08/08 08:05:36 espie Exp $ */
+/* $OpenBSD: setbuffer.c,v 1.6 2015/08/31 02:53:57 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -39,6 +39,7 @@ setbuffer(FILE *fp, char *buf, int size)
(void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size);
}
+DEF_WEAK(setbuffer);
/*
* set line buffering
@@ -49,3 +50,4 @@ setlinebuf(FILE *fp)
return (setvbuf(fp, (char *)NULL, _IOLBF, (size_t)0));
}
+DEF_WEAK(setlinebuf);