Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
01c04013
Commit
01c04013
authored
Nov 11, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Fixes #636431.
parent
bddf5a57
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
38 deletions
+19
-38
configure
configure
+11
-21
configure.in
configure.in
+7
-16
pyconfig.h.in
pyconfig.h.in
+1
-1
No files found.
configure
View file @
01c04013
#! /bin/sh
# From configure.in Revision: 1.36
6
.
# From configure.in Revision: 1.36
7
.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53 for python 2.3.
#
...
...
@@ -16525,13 +16525,6 @@ _ACEOF
fi
# THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
# Add sys/socket.h to confdefs.h
cat
>>
confdefs.h
<<
\
EOF
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
EOF
echo
"
$as_me
:
$LINENO
: checking for socklen_t"
>
&5
echo
$ECHO_N
"checking for socklen_t...
$ECHO_C
"
>
&6
if
test
"
${
ac_cv_type_socklen_t
+set
}
"
=
set
;
then
...
...
@@ -16540,7 +16533,15 @@ else
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
#include "confdefs.h"
$ac_includes_default
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
...
...
@@ -16584,24 +16585,13 @@ if test $ac_cv_type_socklen_t = yes; then
:
else
cat
>>
confdefs.h
<<
_ACEOF
cat
>>
confdefs.h
<<
\
_ACEOF
#define socklen_t int
_ACEOF
fi
#AC_MSG_CHECKING(for Modules/Setup)
#if test ! -f Modules/Setup ; then
# if test ! -d Modules ; then
# mkdir Modules
# fi
# cp "$srcdir/Modules/Setup.dist" Modules/Setup
# AC_MSG_RESULT(creating)
#else
# AC_MSG_RESULT(already exists)
#fi
for
h
in
`
(
cd
$srcdir
;
echo
Python/thread_
*
.h
)
`
...
...
configure.in
View file @
01c04013
...
...
@@ -2445,25 +2445,16 @@ then
[Define if WINDOW in curses.h offers a field _flags.])
fi
# THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
# Add sys/socket.h to confdefs.h
cat >> confdefs.h <<\EOF
AC_CHECK_TYPE(socklen_t,,
AC_DEFINE(socklen_t,int,
Define to `int' if <sys/socket.h> does not define.),[
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
EOF
AC_CHECK_TYPE(socklen_t, int)
#AC_MSG_CHECKING(for Modules/Setup)
#if test ! -f Modules/Setup ; then
# if test ! -d Modules ; then
# mkdir Modules
# fi
# cp "$srcdir/Modules/Setup.dist" Modules/Setup
# AC_MSG_RESULT(creating)
#else
# AC_MSG_RESULT(already exists)
#fi
])
AC_SUBST(THREADHEADERS)
...
...
pyconfig.h.in
View file @
01c04013
...
...
@@ -842,7 +842,7 @@
/* Define to `unsigned' if <sys/types.h> does not define. */
#undef size_t
/* Define to `int' if <sys/
types
.h> does not define. */
/* Define to `int' if <sys/
socket
.h> does not define. */
#undef socklen_t
/* Define to `int' if <sys/types.h> doesn't define. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment