bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

You may need to add #include directives for the following .h files


From: Bruce Korb
Subject: You may need to add #include directives for the following .h files
Date: Sat, 26 Jan 2013 12:27:33 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2

Hi Gary,

Speaking of bootstrap wishes, how about a hack that captures the
"You may need to include this" list?  As the various modules
change dependencies and add new headers, I'd as soon glue the
"you may need to add" cruft to the end of config.h.  e.g.

> You may need to add #include directives for the following .h files.
>   #include <stdbool.h>
>   #include <stdio.h>
>   #include <stdlib.h>
>   #include <unistd.h>

and then never worry over it ever again.  It may not be an issue
for stuff you work with regularly, but when you dust off something
from a few years ago, it is very unpleasant running down all the
"oh, you need to update this, too" stuff.  I capture it for sharutils
because I invoke the autotools individually and capture it myself.
Not so easy to do when using someone else's bootstrap script.
Here is the list I capture for sharutils:

> #include <alloca.h>
> #include <ctype.h>
> #include <getopt.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <sys/utsname.h>
> #include <time.h>
> #include <unistd.h>
> 
> #include "base64.h"
> #include "dirname.h"
> #include "error.h"
> #include "gettext.h"
> #include "inttostr.h"
> #include "locale.h"
> #include "md5.h"
> #include "pathmax.h"
> #include "quotearg.h"
> #include "strftime.h"
> #include "unlocked-io.h"
> #include "xalloc.h"
> #include "xgetcwd.h"
> #include "xstrtol.h"

"Ick."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]