diff options
author | Tom de Vries <tdevries@suse.de> | 2020-07-27 13:46:27 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2020-07-27 13:46:27 +0200 |
commit | 95420d3027046667088c7d1d6725d330bb417461 (patch) | |
tree | aed4b7e8ead513d232a77acdae581178a02b53d8 /gdb/configure.ac | |
parent | 9e3d7d43cfe26eac4f436e14b93f3a759559a49b (diff) | |
download | fsf-binutils-gdb-95420d3027046667088c7d1d6725d330bb417461.zip fsf-binutils-gdb-95420d3027046667088c7d1d6725d330bb417461.tar.gz fsf-binutils-gdb-95420d3027046667088c7d1d6725d330bb417461.tar.bz2 |
[gdb/build] Fix typo sys/sockets.h -> sys/socket.h
I'm running into a build breaker:
...
src/gdb/ser-tcp.c:65:13: error: conflicting declaration ‘typedef int
socklen_t’
65 | typedef int socklen_t;
| ^~~~~~~~~
In file included from ../gnulib/import/unistd.h:40,
from
/home/vries/gdb_versions/devel/src/gdb/../gnulib/import/pathmax.h:42,
from
/home/vries/gdb_versions/devel/src/gdb/../gdbsupport/common-defs.h:120,
from src/gdb/defs.h:28,
from src/gdb/ser-tcp.c:20:
/usr/include/unistd.h:277:21: note: previous declaration as ‘typedef
__socklen_t socklen_t’
277 | typedef __socklen_t socklen_t;
| ^~~~~~~~~
...
after commit 05a6b8c28b "Don't unnecessarily redefine 'socklen_t' type in
MinGW builds".
The root cause is a typo in gdb/configure.ac, using sys/sockets.h where
sys/socket.h was meant:
...
AC_CHECK_HEADERS([sys/sockets.h])
...
Fix the typo.
Build and tested on x86_64-linux.
gdb/ChangeLog:
2020-07-27 Tom de Vries <tdevries@suse.de>
* configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
* config.in: Regenerate.
* configure: Regenerate.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 3bec215..620ae23 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1248,7 +1248,7 @@ AC_CHECK_HEADERS(term.h, [], [], #endif ]) -AC_CHECK_HEADERS([sys/sockets.h]) +AC_CHECK_HEADERS([sys/socket.h]) AC_CHECK_HEADERS([ws2tcpip.h]) # ------------------------- # |