From f47dbf6befd8c97f385bb1c7a3902e9563018b7c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 13 Dec 2002 11:41:21 +0000 Subject: [PATCH] (__GNU_LIBRARY__) [lint]: Define to work around problem with latest . (HACK_FOR___GNU_LIBRARY___PROTOTYPE): New macro. --- src/getargs.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/getargs.c b/src/getargs.c index de468e55..23b06394 100644 --- a/src/getargs.c +++ b/src/getargs.c @@ -24,8 +24,20 @@ #include #include + +/* Hack to get to declare getopt with a prototype. */ +#if lint && ! defined __GNU_LIBRARY__ +# define __GNU_LIBRARY__ +# define HACK_FOR___GNU_LIBRARY___PROTOTYPE 1 +#endif + #include +#ifdef HACK_FOR___GNU_LIBRARY___PROTOTYPE +# undef __GNU_LIBRARY__ +# undef HACK_FOR___GNU_LIBRARY___PROTOTYPE +#endif + #include "complain.h" #include "files.h" #include "getargs.h" -- 2.47.2