mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #4026: Make the fcntl extension build under AIX.
Patch by Sébastien Sablé.
This commit is contained in:
parent
19651369e4
commit
a300007c6e
5 changed files with 109 additions and 11 deletions
6
setup.py
6
setup.py
|
@ -499,7 +499,11 @@ class PyBuildExt(build_ext):
|
|||
# supported...)
|
||||
|
||||
# fcntl(2) and ioctl(2)
|
||||
exts.append( Extension('fcntl', ['fcntlmodule.c']) )
|
||||
libs = []
|
||||
if (config_h_vars.get('FLOCK_NEEDS_LIBBSD', False)):
|
||||
# May be necessary on AIX for flock function
|
||||
libs = ['bsd']
|
||||
exts.append( Extension('fcntl', ['fcntlmodule.c'], libraries=libs) )
|
||||
# pwd(3)
|
||||
exts.append( Extension('pwd', ['pwdmodule.c']) )
|
||||
# grp(3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue