Skip to content

Commit

Permalink
vunet/vuneet_ioctl.c: ifdef for deprecated SIOCGSTAMP
Browse files Browse the repository at this point in the history
  • Loading branch information
rd235 committed Sep 21, 2021
1 parent 6b1e202 commit 2b729af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vunet/vunet_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ long vunet_ioctl_parms(unsigned long request) {
return _IOR(' ', 0, int);
case SIOCGIFCONF:
return _IOWR(' ', 0, struct ifconf);
#ifdef SIOCGSTAMP
case SIOCGSTAMP:
return _IOW(' ', 0, struct timeval);
#endif
case SIOCGIFNAME:
case SIOCGIFFLAGS:
case SIOCGIFADDR:
Expand Down Expand Up @@ -70,7 +72,9 @@ long vunet_ioctl_parms(unsigned long request) {
int vunet_is_netdev_ioctl(unsigned long request) {
switch (request) {
case SIOCGIFCONF:
#ifdef SIOCGSTAMP
case SIOCGSTAMP:
#endif
case SIOCGIFNAME:
case SIOCGIFFLAGS:
case SIOCGIFADDR:
Expand Down

0 comments on commit 2b729af

Please sign in to comment.