Mercurial > hg > octave-jordi > gnulib-hg
annotate modules/exp2l @ 17077:995cc2e74f96
net_if: new module
OpenBSD's <net/if.h> is not self-contained; this should compile:
| #define _POSIX_C_SOURCE 200809L
| #include <net/if.h>
| struct if_nameindex i;
but fails with:
In file included from foo.c:2:
/usr/include/net/if.h:112: error: expected specifier-qualifier-list before 'u_int'
...
/usr/include/net/if.h:674: error: field 'dstaddr' has incomplete type
In file included from /usr/include/net/if.h:691,
from foo.c:2:
/usr/include/net/if_arp.h:79: error: field 'arp_pa' has incomplete type
/usr/include/net/if_arp.h:80: error: field 'arp_ha' has incomplete type
*** Error code 1
We already had a test program for systems with the if_* functions
(including OpenBSD); but in adding this module, I had to enhance
that test to also work on platforms like mingw where we are now
providing a new header.
* modules/net_if: New module, borrowing ideas from netinet_in.
* m4/net_if_h.m4: New file.
* lib/net_if.in.h: Likewise.
* doc/posix-headers/net_if.texi (net/if.h): Document it.
* MODULES.html.sh (lacking POSIX:2008): Likewise.
* tests/test-net_if.c: Make function checks conditional.
Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
Signed-off-by: Eric Blake <eblake@redhat.com>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Wed, 05 Sep 2012 14:28:47 -0600 |
parents | d19d163c1519 |
children | 1f14c6dd175d |
rev | line source |
---|---|
16620 | 1 Description: |
2 exp2l() function: exponential base 2 function with long double argument. | |
3 | |
4 Files: | |
5 lib/exp2l.c | |
6 lib/expl-table.c | |
7 m4/exp2l.m4 | |
8 | |
9 Depends-on: | |
10 math | |
11 extensions | |
16628
d19d163c1519
exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents:
16620
diff
changeset
|
12 exp2 [{ test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] |
d19d163c1519
exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents:
16620
diff
changeset
|
13 float [{ test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] |
d19d163c1519
exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents:
16620
diff
changeset
|
14 isnanl [{ test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] |
d19d163c1519
exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents:
16620
diff
changeset
|
15 roundl [{ test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] |
d19d163c1519
exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents:
16620
diff
changeset
|
16 ldexpl [{ test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] |
16620 | 17 |
18 configure.ac: | |
19 gl_FUNC_EXP2L | |
16628
d19d163c1519
exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents:
16620
diff
changeset
|
20 if test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; then |
16620 | 21 AC_LIBOBJ([exp2l]) |
22 AC_LIBOBJ([expl-table]) | |
23 fi | |
24 gl_MATH_MODULE_INDICATOR([exp2l]) | |
25 | |
26 Makefile.am: | |
27 | |
28 Include: | |
29 <math.h> | |
30 | |
31 Link: | |
32 $(EXP2L_LIBM) | |
33 | |
34 License: | |
35 LGPL | |
36 | |
37 Maintainer: | |
38 Bruno Haible |