diff options
| author | guenther <> | 2015-09-14 07:38:38 +0000 |
|---|---|---|
| committer | guenther <> | 2015-09-14 07:38:38 +0000 |
| commit | 69d51e1e52740c86a8655750d6b847266c605ef4 (patch) | |
| tree | 3e8e48085acccfec6ea84d7f7dfa4ec85ac6335f /src/lib/libc/net/getproto.c | |
| parent | 96fce85193d4320b57ae03fe8567287e7884dbe5 (diff) | |
| download | openbsd-69d51e1e52740c86a8655750d6b847266c605ef4.tar.gz openbsd-69d51e1e52740c86a8655750d6b847266c605ef4.tar.bz2 openbsd-69d51e1e52740c86a8655750d6b847266c605ef4.zip | |
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/net/getproto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libc/net/getproto.c b/src/lib/libc/net/getproto.c index 07fa33288d..8e080679d0 100644 --- a/src/lib/libc/net/getproto.c +++ b/src/lib/libc/net/getproto.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: getproto.c,v 1.7 2005/08/06 20:30:03 espie Exp $ */ | 1 | /* $OpenBSD: getproto.c,v 1.8 2015/09/14 07:38:38 guenther Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 1983, 1993 | 3 | * Copyright (c) 1983, 1993 |
| 4 | * The Regents of the University of California. All rights reserved. | 4 | * The Regents of the University of California. All rights reserved. |
| @@ -46,6 +46,7 @@ getprotobynumber_r(int num, struct protoent *pe, struct protoent_data *pd) | |||
| 46 | } | 46 | } |
| 47 | return (error); | 47 | return (error); |
| 48 | } | 48 | } |
| 49 | DEF_WEAK(getprotobynumber_r); | ||
| 49 | 50 | ||
| 50 | struct protoent * | 51 | struct protoent * |
| 51 | getprotobynumber(int num) | 52 | getprotobynumber(int num) |
