This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] common/filestuff.c: No sockets on DJGPP.
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 22 May 2013 05:49:39 +0300
- Subject: Re: [PATCH] common/filestuff.c: No sockets on DJGPP.
- References: <20130521203302 dot 23510 dot 45135 dot stgit at brno dot lan>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Pedro Alves <palves@redhat.com>
> Date: Tue, 21 May 2013 21:33:02 +0100
>
> Building gdb with --host=i586-pc-msdosdjgpp ends up with:
>
> i586-pc-msdosdjgpp-gcc -g -O2 -I../../src/gdb/config/djgpp -I. -I../../src/gdb -I../../src/gdb/common -I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../opcodes/.. -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include -I../libdecnumber -I../../src/gdb/../libdecnumber -I./../intl -I../../src/gdb/gnulib/import -Ibuild-gnulib/import -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body -Werror -c -o filestuff.o -MT filestuff.o -MMD -MP -MF .deps/filestuff.Tpo ../../src/gdb/common/filestuff.c
> ../../src/gdb/common/filestuff.c:38:24: fatal error: sys/socket.h: No such file or directory
>
> There are no sockets on djgpp. This #ifdef's out the bits in the file
> that use sockets, depending on whether winsock or sys/socket.h is
> available.
This is fine with me, thanks.
> As alternative approach, given ser-tcp.c, ser-pipe.c, etc. are split
> into separate files, and which to use is selected by configure.ac:
Looks like overhead to me, but if others prefer this, I can go with
this as well.
Thanks.