diff options
| author | songyanchao <[email protected]> | 2024-01-10 06:58:59 +0000 |
|---|---|---|
| committer | songyanchao <[email protected]> | 2024-01-10 08:31:31 +0000 |
| commit | a7f1edbddd710acf01235e7174f10dfd0d195023 (patch) | |
| tree | 3f49ae86a8a3cd234dde349fcdb55647ef12640c | |
| parent | 5e7c3a5f22bc0edfa347d41a8a05099584ff798f (diff) | |
🐞 fix(TSG-18251): Fix compilation failure in EL7 environment.
Fix compilation failure in EL7 environment.
| -rw-r--r-- | service/src/devmgr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/service/src/devmgr.c b/service/src/devmgr.c index 742a1f4..9fc0469 100644 --- a/service/src/devmgr.c +++ b/service/src/devmgr.c @@ -1,5 +1,11 @@ /// 物理设备管理器 +/* Added for EL7 compatibility */ +#include <sys/socket.h> +#include <sys/types.h> +/* Ensure that sys/types.h and sys/socket.h are included before linux/if.h */ +#include <linux/if.h> + #include <assert.h> #include <linux/if_arp.h> #include <linux/if_vlan.h> |
