mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-09 04:11:27 +08:00
1ce7d80ddc
* resolv/res_hconf.c: Prepare for compiling outside libc. * nscd/res_hconf.c: New file. * nscd/Makefile (nscd-modules): Add res_hconf. Add rules to build the new file. * nscd/gethstbynm2_r.c (NEED__RES_HCONF): Define. * nscd/gethstbyad_r.c (NEED__RES_HCONF): Likewise.
14 lines
334 B
C
14 lines
334 B
C
/* Add the include here so that we can redefine __fxprintf. */
|
|
#include <stdio.h>
|
|
|
|
/* Rename symbols for protected names used in libc itself. */
|
|
#define __ioctl ioctl
|
|
#define __socket socket
|
|
#define __strchrnul strchrnul
|
|
#define __strncasecmp strncasecmp
|
|
|
|
#define __fxprintf(args...) /* ignore */
|
|
|
|
|
|
#include "../resolv/res_hconf.c"
|