]> Zhao Yanbai Git Server - minix.git/commitdiff
Move network includes and lib.h into common/include subdir.
authorGianluca Guida <gianluca@minix3.org>
Mon, 14 Feb 2011 12:49:18 +0000 (12:49 +0000)
committerGianluca Guida <gianluca@minix3.org>
Mon, 14 Feb 2011 12:49:18 +0000 (12:49 +0000)
This patch moves further includes (the network part and lib.h) in common/.
It is the last part to get the netbsd libc to compile under minix. Further moves will be needed as we get the netbsd libc to compile minix itself.

Also, this patch add #ifndef's to termios.h, as it create problems with netbsd's namespace.h.

33 files changed:
common/include/Makefile.inc
common/include/lib.h [moved from include/lib.h with 100% similarity]
common/include/minix/u64.h [moved from include/minix/u64.h with 100% similarity]
common/include/net/gen/arp_io.h [moved from include/net/gen/arp_io.h with 100% similarity]
common/include/net/gen/dhcp.h [moved from include/net/gen/dhcp.h with 100% similarity]
common/include/net/gen/eth_hdr.h [moved from include/net/gen/eth_hdr.h with 100% similarity]
common/include/net/gen/eth_io.h [moved from include/net/gen/eth_io.h with 100% similarity]
common/include/net/gen/ether.h [moved from include/net/gen/ether.h with 100% similarity]
common/include/net/gen/icmp.h [moved from include/net/gen/icmp.h with 100% similarity]
common/include/net/gen/icmp_hdr.h [moved from include/net/gen/icmp_hdr.h with 100% similarity]
common/include/net/gen/if_ether.h [moved from include/net/gen/if_ether.h with 100% similarity]
common/include/net/gen/in.h [moved from include/net/gen/in.h with 100% similarity]
common/include/net/gen/inet.h [moved from include/net/gen/inet.h with 100% similarity]
common/include/net/gen/ip_hdr.h [moved from include/net/gen/ip_hdr.h with 100% similarity]
common/include/net/gen/ip_io.h [moved from include/net/gen/ip_io.h with 100% similarity]
common/include/net/gen/nameser.h [moved from include/net/gen/nameser.h with 100% similarity]
common/include/net/gen/netdb.h [moved from include/net/gen/netdb.h with 100% similarity]
common/include/net/gen/oneCsum.h [moved from include/net/gen/oneCsum.h with 100% similarity]
common/include/net/gen/psip_hdr.h [moved from include/net/gen/psip_hdr.h with 100% similarity]
common/include/net/gen/psip_io.h [moved from include/net/gen/psip_io.h with 100% similarity]
common/include/net/gen/resolv.h [moved from include/net/gen/resolv.h with 100% similarity]
common/include/net/gen/rip.h [moved from include/net/gen/rip.h with 100% similarity]
common/include/net/gen/route.h [moved from include/net/gen/route.h with 100% similarity]
common/include/net/gen/socket.h [moved from include/net/gen/socket.h with 100% similarity]
common/include/net/gen/tcp.h [moved from include/net/gen/tcp.h with 100% similarity]
common/include/net/gen/tcp_hdr.h [moved from include/net/gen/tcp_hdr.h with 100% similarity]
common/include/net/gen/tcp_io.h [moved from include/net/gen/tcp_io.h with 100% similarity]
common/include/net/gen/udp.h [moved from include/net/gen/udp.h with 100% similarity]
common/include/net/gen/udp_hdr.h [moved from include/net/gen/udp_hdr.h with 100% similarity]
common/include/net/gen/udp_io.h [moved from include/net/gen/udp_io.h with 100% similarity]
common/include/net/gen/vjhc.h [moved from include/net/gen/vjhc.h with 100% similarity]
common/include/termios.h
include/Makefile

index d610585128ee3a81010b09a2f14fd1b2d9e475ee..62a4454a08dbc9531a8f4f4bccebecfec42810c4 100644 (file)
@@ -2,6 +2,8 @@
 
 .PATH: ${MINIXSRCDIR}/common/include
 
+INCS+=         lib.h
+
 INCS+=         minix/ansi.h minix/bitmap.h minix/callnr.h minix/com.h \
        minix/compiler.h minix/config.h minix/const.h minix/debug.h \
        minix/devio.h minix/ds.h minix/endpoint.h minix/gcov.h \
@@ -9,6 +11,15 @@ INCS+=        minix/ansi.h minix/bitmap.h minix/callnr.h minix/com.h \
        minix/limits.h minix/minlib.h minix/portio.h minix/priv.h \
        minix/profile.h minix/rs.h minix/safecopies.h minix/sef.h \
        minix/spin.h minix/sys_config.h minix/sysinfo.h minix/syslib.h \
-       minix/sysutil.h minix/timers.h minix/type.h minix/vm.h
-
+       minix/sysutil.h minix/timers.h minix/type.h minix/u64.h minix/vm.h
 
+INCS+= net/gen/arp_io.h net/gen/dhcp.h net/gen/ether.h \
+       net/gen/eth_hdr.h net/gen/eth_io.h net/gen/icmp.h \
+       net/gen/icmp_hdr.h net/gen/if_ether.h net/gen/inet.h \
+       net/gen/in.h net/gen/ip_hdr.h net/gen/ip_io.h \
+       net/gen/nameser.h net/gen/netdb.h net/gen/oneCsum.h \
+       net/gen/psip_hdr.h net/gen/psip_io.h net/gen/resolv.h \
+       net/gen/rip.h net/gen/route.h net/gen/socket.h \
+       net/gen/tcp.h net/gen/tcp_hdr.h net/gen/tcp_io.h \
+       net/gen/udp.h net/gen/udp_hdr.h net/gen/udp_io.h \
+       net/gen/vjhc.h
similarity index 100%
rename from include/lib.h
rename to common/include/lib.h
index d194fc39f603bc28392793416bd3f0e4218fb302..a0b0f65171363c1bc1099362ee3de96c8a4eac9c 100644 (file)
@@ -133,10 +133,18 @@ _PROTOTYPE( int tcgetattr, (int _filedes, struct termios *_termios_p)        );
 _PROTOTYPE( int tcsetattr, \
        (int _filedes, int _opt_actions, const struct termios *_termios_p)   );
 
+#ifndef cfgetispeed
 #define cfgetispeed(termios_p)         ((termios_p)->c_ispeed)
+#endif
+#ifndef cfgetospeed
 #define cfgetospeed(termios_p)         ((termios_p)->c_ospeed)
+#endif
+#ifndef cfsetispeed
 #define cfsetispeed(termios_p, speed)  ((termios_p)->c_ispeed = (speed), 0)
+#endif
+#ifndef cfsetospeed
 #define cfsetospeed(termios_p, speed)  ((termios_p)->c_ospeed = (speed), 0)
+#endif
 
 #ifdef _MINIX
 /* Here are the local extensions to the POSIX standard for Minix. Posix
index 1a808df3da348abb7eb6f0b033fbd73af5bc0612..fef66f61161da031a20d389a6c3e7669d37f16c3 100644 (file)
@@ -3,7 +3,7 @@
 INCS=  alloca.h a.out.h ar.h assert.h configfile.h ctype.h \
        curses.h dirent.h env.h err.h errno.h fcntl.h fenv.h \
        float.h fnmatch.h fts.h getopt.h glob.h grp.h ifaddrs.h \
-       inttypes.h libgen.h lib.h libutil.h limits.h locale.h \
+       inttypes.h libgen.h libutil.h limits.h locale.h \
        mathconst.h math.h midiparser.h netdb.h pwd.h regex.h \
        regexp.h setjmp.h sgtty.h signal.h stdarg.h stddef.h \
        stdint.h stdbool.h stdio.h stdlib.h string.h strings.h sysexits.h \
@@ -24,28 +24,18 @@ INCS+=      minix/a.out.h minix/cdrom.h minix/cpufeature.h \
        minix/queryparam.h \
        minix/sched.h minix/sound.h \
        minix/tty.h minix/types.h \
-       minix/u64.h minix/vfsif.h minix/vtreefs.h \
+       minix/vfsif.h minix/vtreefs.h \
        minix/compiler-ack.h minix/sha2.h minix/sha1.h minix/md5.h \
        minix/audio_fw.h minix/hash.h minix/input.h 
 INCS+= net/hton.h net/if.h net/ioctl.h net/netlib.h
-INCS+= net/gen/arp_io.h net/gen/dhcp.h net/gen/ether.h \
-       net/gen/eth_hdr.h net/gen/eth_io.h net/gen/icmp.h \
-       net/gen/icmp_hdr.h net/gen/if_ether.h net/gen/inet.h \
-       net/gen/in.h net/gen/ip_hdr.h net/gen/ip_io.h \
-       net/gen/nameser.h net/gen/netdb.h net/gen/oneCsum.h \
-       net/gen/psip_hdr.h net/gen/psip_io.h net/gen/resolv.h \
-       net/gen/rip.h net/gen/route.h net/gen/socket.h \
-       net/gen/tcp.h net/gen/tcp_hdr.h net/gen/tcp_io.h \
-       net/gen/udp.h net/gen/udp_hdr.h net/gen/udp_io.h \
-       net/gen/vjhc.h
 INCS+= netinet/if_ether.h netinet/in.h netinet/tcp.h
 
 .include <bsd.own.mk>
 
 INCSDIR=        /usr/include
 
-.include "../common/include/Makefile.inc"
-.include "../common/include/Makefile.termios.inc"
+.include "${MINIXSRCDIR}/common/include/Makefile.inc"
+.include "${MINIXSRCDIR}/common/include/Makefile.termios.inc"
 
 SUBDIR=                sys arch