-
-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename SO_{RCV,SND}TIMEO for Linux 5.1 #3498
Comments
Hi, @J0WI, thanks for opening this ticket; I didn't know that this renaming is happening in the Linux kernel. If you (or anyone else) has the need to use these constants, with the At the moment, it looks like ponyc/src/libponyrt/lang/socket.c Lines 5103 to 5104 in 2bf65c0
1097 . The _OLD symbols can be added at the end with constants 1098 and 1099 . The _NEW symbols can be added also, with constants 1100-1101, assuming of course that the same #ifdef wrappers are used around both old & new constants.
|
This will still fail to compile on Linux 5.1+:
Renaming them with |
Thanks, @J0WI. Could you try the patch at https://gist.github.com/slfritchie/954557a58e1afce558db912356ee3c7a ? That creates the new constants plus the
When I run this on a machine that doesn't have |
It does not compile, same error as before. |
ponyc/src/libponyrt/lang/socket.c
Lines 4473 to 4474 in 2bf65c0
ponyc/src/libponyrt/lang/socket.c
Lines 4530 to 4531 in 2bf65c0
They have been renamed in Linux 5.1.
The text was updated successfully, but these errors were encountered: