mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-45847: Port fcntl to Py_STDLIB_MOD (GH-29696)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
29699a2a2a
commit
5b946cadaa
5 changed files with 60 additions and 28 deletions
7
setup.py
7
setup.py
|
@ -1030,12 +1030,7 @@ class PyBuildExt(build_ext):
|
|||
# supported...)
|
||||
|
||||
# fcntl(2) and ioctl(2)
|
||||
libs = []
|
||||
if (self.config_h_vars.get('FLOCK_NEEDS_LIBBSD', False)):
|
||||
# May be necessary on AIX for flock function
|
||||
libs = ['bsd']
|
||||
self.add(Extension('fcntl', ['fcntlmodule.c'],
|
||||
libraries=libs))
|
||||
self.addext(Extension('fcntl', ['fcntlmodule.c']))
|
||||
# grp(3)
|
||||
self.addext(Extension('grp', ['grpmodule.c']))
|
||||
self.addext(Extension('spwd', ['spwdmodule.c']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue