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
d632050d
Commit
d632050d
authored
Aug 12, 2004
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define _BSD_TYPES. Fixes #1005308. Backported to 2.3.
parent
0cb3c635
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
6 deletions
+73
-6
configure
configure
+63
-3
configure.in
configure.in
+4
-0
pyconfig.h.in
pyconfig.h.in
+6
-3
No files found.
configure
View file @
d632050d
#! /bin/sh
#! /bin/sh
# From configure.in Revision: 1.46
2
.
# From configure.in Revision: 1.46
4
.
# Guess values for system-dependent variables and create Makefiles.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.57 for python 2.4.
# Generated by GNU Autoconf 2.57 for python 2.4.
#
#
...
@@ -1347,6 +1347,14 @@ cat >>confdefs.h <<\_ACEOF
...
@@ -1347,6 +1347,14 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
_ACEOF
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
cat
>>
confdefs.h
<<
\
_ACEOF
#define _BSD_TYPES 1
_ACEOF
define_xopen_source
=
yes
define_xopen_source
=
yes
# Arguments passed to configure.
# Arguments passed to configure.
...
@@ -12351,8 +12359,9 @@ echo "${ECHO_T}MACHDEP_OBJS" >&6
...
@@ -12351,8 +12359,9 @@ echo "${ECHO_T}MACHDEP_OBJS" >&6
for
ac_func
in
alarm
chown
clock confstr ctermid execv
\
fork fpathconf ftime ftruncate
\
for
ac_func
in
alarm bind_textdomain_codeset
chown
clock confstr ctermid
\
execv fork fpathconf ftime ftruncate
\
gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid
\
gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid
\
getpriority getpwent getsid getwd
\
getpriority getpwent getsid getwd
\
kill
killpg lchown lstat
mkfifo mknod
mktime
\
kill
killpg lchown lstat
mkfifo mknod
mktime
\
...
@@ -15592,6 +15601,57 @@ rm -f conftest.$ac_objext conftest.$ac_ext
...
@@ -15592,6 +15601,57 @@ rm -f conftest.$ac_objext conftest.$ac_ext
echo
"
$as_me
:
$LINENO
: result:
$works
"
>
&5
echo
"
$as_me
:
$LINENO
: result:
$works
"
>
&5
echo
"
${
ECHO_T
}
$works
"
>
&6
echo
"
${
ECHO_T
}
$works
"
>
&6
# check for socketpair
echo
"
$as_me
:
$LINENO
: checking for socketpair"
>
&5
echo
$ECHO_N
"checking for socketpair...
$ECHO_C
"
>
&6
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
void *x=socketpair
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_compile
\"
"
)
>
&5
(
eval
$ac_compile
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -s conftest.$ac_objext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_SOCKETPAIR 1
_ACEOF
echo
"
$as_me
:
$LINENO
: result: yes"
>
&5
echo
"
${
ECHO_T
}
yes"
>
&6
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
echo
"
$as_me
:
$LINENO
: result: no"
>
&5
echo
"
${
ECHO_T
}
no"
>
&6
fi
rm
-f
conftest.
$ac_objext
conftest.
$ac_ext
# check if sockaddr has sa_len member
# check if sockaddr has sa_len member
echo
"
$as_me
:
$LINENO
: checking if sockaddr has sa_len member"
>
&5
echo
"
$as_me
:
$LINENO
: checking if sockaddr has sa_len member"
>
&5
echo
$ECHO_N
"checking if sockaddr has sa_len member...
$ECHO_C
"
>
&6
echo
$ECHO_N
"checking if sockaddr has sa_len member...
$ECHO_C
"
>
&6
...
...
configure.in
View file @
d632050d
...
@@ -50,6 +50,10 @@ AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features]
...
@@ -50,6 +50,10 @@ AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features]
# them.
# them.
AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features])
AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features])
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
AC_DEFINE(_BSD_TYPES, 1, [Define on Irix to enable u_int])
define_xopen_source=yes
define_xopen_source=yes
# Arguments passed to configure.
# Arguments passed to configure.
...
...
pyconfig.h.in
View file @
d632050d
...
@@ -428,15 +428,15 @@
...
@@ -428,15 +428,15 @@
/* Define to 1 if you have the `snprintf' function. */
/* Define to 1 if you have the `snprintf' function. */
#undef HAVE_SNPRINTF
#undef HAVE_SNPRINTF
/* Define to 1 if you have the `socketpair' function. */
#undef HAVE_SOCKETPAIR
/* Define if sockaddr has sa_len member */
/* Define if sockaddr has sa_len member */
#undef HAVE_SOCKADDR_SA_LEN
#undef HAVE_SOCKADDR_SA_LEN
/* struct sockaddr_storage (sys/socket.h) */
/* struct sockaddr_storage (sys/socket.h) */
#undef HAVE_SOCKADDR_STORAGE
#undef HAVE_SOCKADDR_STORAGE
/* Define if you have the 'socketpair' function. */
#undef HAVE_SOCKETPAIR
/* Define to 1 if you have the `statvfs' function. */
/* Define to 1 if you have the `statvfs' function. */
#undef HAVE_STATVFS
#undef HAVE_STATVFS
...
@@ -806,6 +806,9 @@
...
@@ -806,6 +806,9 @@
# undef _ALL_SOURCE
# undef _ALL_SOURCE
#endif
#endif
/* Define on Irix to enable u_int */
#undef _BSD_TYPES
/* This must be set to 64 on some systems to enable large file support. */
/* This must be set to 64 on some systems to enable large file support. */
#undef _FILE_OFFSET_BITS
#undef _FILE_OFFSET_BITS
...
...
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