add inet_pton (and inet_ntop) functional tests
[libc-test] / src / api / fmtmsg.c
index 1c79c84..46a2486 100644 (file)
@@ -1,4 +1,4 @@
-#ifdef _XOPEN_SOURCE
+#ifdef X_FMTMSG
 #include <fmtmsg.h>
 #define C(n) switch(n){case n:;}
 static void f()
@@ -22,6 +22,8 @@ C(MM_OK)
 C(MM_NOTOK)
 C(MM_NOMSG)
 C(MM_NOCON)
-int(*p_fmtmsg)(long,const char*,int,const char*,const char*,const char*) = fmtmsg;
+{int(*p)(long,const char*,int,const char*,const char*,const char*) = fmtmsg;}
 }
+#else
+static void f(){}
 #endif