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
668a94a3
Commit
668a94a3
authored
Feb 21, 2006
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NETLINK_TCPDIAG and NETLINK_NFLOG aren't defined on older Linux
systems; define these conditionally.
parent
c255c7be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Modules/socketmodule.c
Modules/socketmodule.c
+4
-0
No files found.
Modules/socketmodule.c
View file @
668a94a3
...
...
@@ -4029,8 +4029,12 @@ init_socket(void)
PyModule_AddIntConstant
(
m
,
"NETLINK_SKIP"
,
NETLINK_SKIP
);
PyModule_AddIntConstant
(
m
,
"NETLINK_USERSOCK"
,
NETLINK_USERSOCK
);
PyModule_AddIntConstant
(
m
,
"NETLINK_FIREWALL"
,
NETLINK_FIREWALL
);
#ifdef NETLINK_TCPDIAG
PyModule_AddIntConstant
(
m
,
"NETLINK_TCPDIAG"
,
NETLINK_TCPDIAG
);
#endif
#ifdef NETLINK_NFLOG
PyModule_AddIntConstant
(
m
,
"NETLINK_NFLOG"
,
NETLINK_NFLOG
);
#endif
#ifdef NETLINK_XFRM
PyModule_AddIntConstant
(
m
,
"NETLINK_XFRM"
,
NETLINK_XFRM
);
#endif
...
...
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