Mercurial > hg > octave-kai > gnulib-hg
annotate modules/sys_socket @ 10375:f96e845fc36d
Avoid some "gcc -pedantic" warnings.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 30 Aug 2008 03:09:15 +0200 |
parents | be905220886f |
children | 1783808b8d00 |
rev | line source |
---|---|
6536 | 1 Description: |
9907
be905220886f
Override <sys/socket.h> when it exists but is incomplete.
Bruno Haible <bruno@clisp.org>
parents:
9266
diff
changeset
|
2 A POSIX-like <sys/socket.h>. |
6536 | 3 |
4 Files: | |
9266
2e4b4a414ab5
Rename sys_socket_.h to sys_socket.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9102
diff
changeset
|
5 lib/sys_socket.in.h |
6536 | 6 m4/sys_socket_h.m4 |
6929
7a1f12aa78c3
2006-07-06 Simon Josefsson <jas@extundo.com>
Simon Josefsson <simon@josefsson.org>
parents:
6862
diff
changeset
|
7 m4/sockpfaf.m4 |
6536 | 8 |
9 Depends-on: | |
8998
442682a45bcd
* m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
Paul Eggert <eggert@cs.ucla.edu>
parents:
8825
diff
changeset
|
10 include_next |
6536 | 11 |
12 configure.ac: | |
13 gl_HEADER_SYS_SOCKET | |
7900
2843623a4ec4
Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
Jim Meyering <jim@meyering.net>
parents:
7497
diff
changeset
|
14 AC_PROG_MKDIR_P |
6536 | 15 |
16 Makefile.am: | |
17 BUILT_SOURCES += $(SYS_SOCKET_H) | |
18 | |
19 # We need the following in order to create <sys/socket.h> when the system | |
20 # doesn't have one that works with the given compiler. | |
9266
2e4b4a414ab5
Rename sys_socket_.h to sys_socket.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9102
diff
changeset
|
21 sys/socket.h: sys_socket.in.h |
7925
923e3f215ae2
Use @MKDIR_P@ instead of $(MKDIR_P), since automake < 1.10 doesn't the
Bruno Haible <bruno@clisp.org>
parents:
7900
diff
changeset
|
22 @MKDIR_P@ sys |
7421
8bace4b08db5
Mark generated files as "DO NOT EDIT".
Bruno Haible <bruno@clisp.org>
parents:
7274
diff
changeset
|
23 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
10375
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9907
diff
changeset
|
24 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9907
diff
changeset
|
25 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
8998
442682a45bcd
* m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
Paul Eggert <eggert@cs.ucla.edu>
parents:
8825
diff
changeset
|
26 -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \ |
8377
a8e9ed7caeae
Make <sys/socket.h> self-contained, so that it can be included without
Bruno Haible <bruno@clisp.org>
parents:
7925
diff
changeset
|
27 -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \ |
a8e9ed7caeae
Make <sys/socket.h> self-contained, so that it can be included without
Bruno Haible <bruno@clisp.org>
parents:
7925
diff
changeset
|
28 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ |
a8e9ed7caeae
Make <sys/socket.h> self-contained, so that it can be included without
Bruno Haible <bruno@clisp.org>
parents:
7925
diff
changeset
|
29 -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \ |
9266
2e4b4a414ab5
Rename sys_socket_.h to sys_socket.in.h.
Bruno Haible <bruno@clisp.org>
parents:
9102
diff
changeset
|
30 < $(srcdir)/sys_socket.in.h; \ |
7421
8bace4b08db5
Mark generated files as "DO NOT EDIT".
Bruno Haible <bruno@clisp.org>
parents:
7274
diff
changeset
|
31 } > $@-t |
7274
9ff9e0f3d681
Don't make generated files read-only. That would bother too many
Jim Meyering <jim@meyering.net>
parents:
7268
diff
changeset
|
32 mv -f $@-t $@ |
6536 | 33 MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t |
6862 | 34 MOSTLYCLEANDIRS += sys |
6536 | 35 |
36 Include: | |
37 #include <sys/socket.h> | |
38 | |
39 License: | |
9102
404dc8725caf
Use the synonymous term LGPLv2.
Bruno Haible <bruno@clisp.org>
parents:
8998
diff
changeset
|
40 LGPLv2+ |
6536 | 41 |
42 Maintainer: | |
43 Simon Josefsson |