This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] common/filestuff.c: No sockets on DJGPP.


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]