X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsys_file.in.h;h=77a7ccbe55e73d13903c948dcb96b3252f7bcefa;hb=cbd5934b1918d73022d1d1d9904112f3d6d7f187;hp=58e0d6abb1229f5923193420022229d5290fc488;hpb=b4349b948ba2c352187158e241334abda6e473e9;p=pspp diff --git a/lib/sys_file.in.h b/lib/sys_file.in.h index 58e0d6abb1..77a7ccbe55 100644 --- a/lib/sys_file.in.h +++ b/lib/sys_file.in.h @@ -41,7 +41,7 @@ # define LOCK_NB 4 /* Don't block when locking. */ #endif -/* The definition of GL_LINK_WARNING is copied here. */ +/* The definition of _GL_WARN_ON_USE is copied here. */ #if @GNULIB_FLOCK@ /* Apply or remove advisory locks on an open file. @@ -51,10 +51,10 @@ extern int flock (int fd, int operation); # endif #elif defined GNULIB_POSIXCHECK # undef flock -# define flock(fd,op) \ - (GL_LINK_WARNING ("flock is unportable - " \ - "use gnulib module flock for portability"), \ - flock ((fd), (op))) +# if HAVE_RAW_DECL_FLOCK +_GL_WARN_ON_USE (flock, "flock is unportable - " + "use gnulib module flock for portability"); +# endif #endif