aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorGuillaume Solignac <gsoligna@cisco.com>2023-01-10 15:37:18 +0100
committerBeno�t Ganne <bganne@cisco.com>2023-01-12 13:18:36 +0000
commitaf5744c3595dee92ff9ceb1e08314123baea35e5 (patch)
treee249c74a6586fa8064fda2fd116200c9bf5fea41 /src/vppinfra
parent6903da232304bc47fc82178bb6956e3613a9921c (diff)
misc: use right include for fctnl.h and poll.h
Musl is stricter than glibc and has a warning that including fctnl.h and poll.h should be prefered rather than their sys/ counterparts, which breaks -Wall setups. Type: fix Signed-off-by: Guillaume Solignac <gsoligna@cisco.com> Change-Id: Id101e999371951b0927cc8c4109f8f1536de1bc2
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/mpcap.c2
-rw-r--r--src/vppinfra/pcap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vppinfra/mpcap.c b/src/vppinfra/mpcap.c
index 8389a7fd2d7..d8e36c29fbd 100644
--- a/src/vppinfra/mpcap.c
+++ b/src/vppinfra/mpcap.c
@@ -13,7 +13,7 @@
* limitations under the License.
*/
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <vppinfra/mpcap.h>
/*
diff --git a/src/vppinfra/pcap.c b/src/vppinfra/pcap.c
index 4f8b6bb429c..23bb463835b 100644
--- a/src/vppinfra/pcap.c
+++ b/src/vppinfra/pcap.c
@@ -37,7 +37,7 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <vppinfra/pcap.h>
/**