This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[mingw CVS HEAD] build error as there is no sys/socket.h under MinGW
- From: asmwarrior <asmwarrior at gmail dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Tue, 23 Apr 2013 08:28:18 +0800
- Subject: [mingw CVS HEAD] build error as there is no sys/socket.h under MinGW
I just get a build error on CVS HEAD:
mingw32-gcc -O0 -g -D__USE_MINGW_ACCESS -I. -I../../gdb/gdb -I../../gdb/gdb/common -I../../gdb/gdb/config -DLOCALEDIR="\"/mingw/share/locale\"" -DHAVE_CONFIG_H -I../../gdb/gdb/../include/opcode -I../../gdb/gdb/../opcodes/.. -I../../gdb/gdb/../readline/.. -I../bfd -I../../gdb/gdb/../bfd -I../../gdb/gdb/../include -I../libdecnumber -I../../gdb/gdb/../libdecnumber -I../../gdb/gdb/gnulib/import -Ibuild-gnulib/import -IE:/code/python27/include -IE:/code/python27/include -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 -Wno-format -Werror -c -o filestuff.o -MT filestuff.o -MMD -MP -MF .deps/filestuff.Tpo ../../gdb/gdb/common/filestuff.c
../../gdb/gdb/common/filestuff.c:31:24: fatal error: sys/socket.h: No such file or directory
I see there is no sys/socket.h in MinGW. I have no idea how to fix it.
Yuanhui Zhang