From e0bf16819c83c3ef1d11bf373f5f90a1f09c534c Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 24 Dec 2009 07:19:23 -0700 Subject: link-warning: make usage consistent Ensure GL_LINK_WARNING is defined before use. * modules/ctype (Depends-on): Add link-warning. (Makefile.am): Update rules accordingly. * modules/langinfo (Depends-on, Makefile.am): Likewise. * modules/locale (Depends-on, Makefile.am): Likewise. * modules/sys_file (Makefile.am): Likewise. * modules/getopt-posix (Makefile.am): Delete unused link warning efforts. * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use. * lib/langinfo.in.h (GL_LINK_WARNING): Likewise. * lib/locale.in.h (GL_LINK_WARNING): Likewise. * lib/sys_file.in.h (GL_LINK_WARNING): Likewise. Signed-off-by: Eric Blake --- lib/sys_file.in.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sys_file.in.h') diff --git a/lib/sys_file.in.h b/lib/sys_file.in.h index 44626640ff..2dff58c3df 100644 --- a/lib/sys_file.in.h +++ b/lib/sys_file.in.h @@ -41,6 +41,8 @@ # define LOCK_NB 4 /* Don't block when locking. */ #endif +/* The definition of GL_LINK_WARNING is copied here. */ + #if @GNULIB_FLOCK@ /* Apply or remove advisory locks on an open file. Return 0 if successful, otherwise -1 and errno set. */ -- cgit v1.2.1