[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Location of declarations in Linux vs FreeBSD, etc.
From: |
Philip Kovacs |
Subject: |
Location of declarations in Linux vs FreeBSD, etc. |
Date: |
Mon, 5 Mar 2007 00:03:16 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
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
pgpyy3ZjBYd7K.pgp
Description: PGP signature
- Location of declarations in Linux vs FreeBSD, etc.,
Philip Kovacs <=