Location of declarations in Linux vs FreeBSD, etc.

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

 



Hi,

Can anyone tell me how best to approach the problem of variation
of location of function declarations across OS'es?

For example, in Linux the declaration for daemon() is in <unistd.h>,
but in FreeBSD it is in <stdlib.h>. In both cases, AC_CHECK_FUNCS([daemon]) 
has no problem finding daemon(), but I am interested defining a variable
so that the program can include (only) the correct header.

Is it possible to identify which header a function is located in, e.g.
given a list of possible headers?  Whats's the "right" way to handle this?

Thanks.

Phil

Attachment: pgpW2SwaCWYOT.pgp
Description: PGP signature

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux