X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsys_utsname.in.h;h=c0dabccb2e648bba63e84b850674ec0a7be0fd71;hb=8465329af7e7da7e9e8c61a3c0f71d4cee89ccd5;hp=3cd7aacc32cadda9e75a84612b112663814f0a82;hpb=b2e2010c7c902235b5efb5bd3c6529f61b093aa4;p=gnulib.git diff --git a/lib/sys_utsname.in.h b/lib/sys_utsname.in.h index 3cd7aacc3..c0dabccb2 100644 --- a/lib/sys_utsname.in.h +++ b/lib/sys_utsname.in.h @@ -27,10 +27,10 @@ #define _GL_SYS_UTSNAME_H -/* The definition of GL_LINK_WARNING is copied here. */ - /* The definition of _GL_ARG_NONNULL is copied here. */ +/* The definition of _GL_WARN_ON_USE is copied here. */ + #ifdef __cplusplus extern "C" { @@ -81,10 +81,10 @@ extern int uname (struct utsname *buf) _GL_ARG_NONNULL ((1)); # endif #elif defined GNULIB_POSIXCHECK # undef uname -# define uname(b) \ - (GL_LINK_WARNING ("uname is unportable - " \ - "use gnulib module uname for portability"), \ - uname (b)) +# if HAVE_RAW_DECL_UNAME +_GL_WARN_ON_USE (uname, "uname is unportable - " + "use gnulib module uname for portability"); +# endif #endif