Handle (complex (member not-a-real)) types.
[sbcl.git] / tools-for-build / os-provides-getprotoby-r-test.c
blobb09f0e4ba8e72b5abb28354da81b610d0677beb0
1 /* test to build and run so that we know if we have getprotobyname_r
2 * and getprotobynumber_r */
4 #include <netdb.h>
6 #define BUFSIZE 1024
8 int main ()
10 struct protoent result_buf;
11 struct protoent *result;
12 char buf[BUFSIZE];
13 getprotobyname_r("", &result_buf, buf, BUFSIZE, &result);
14 getprotobynumber_r("", &result_buf, buf, BUFSIZE, &result);
15 return 104;