Fix make-array transforms.
[sbcl.git] / tools-for-build / os-provides-getprotoby-r-test.c
1 /* test to build and run so that we know if we have getprotobyname_r
2  * and getprotobynumber_r */
3
4 #include <netdb.h>
5
6 #define BUFSIZE 1024
7
8 int main ()
9 {
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;
16 }