misc: use right include for fctnl.h and poll.h 90/37890/3
authorGuillaume Solignac <gsoligna@cisco.com>
Tue, 10 Jan 2023 14:37:18 +0000 (15:37 +0100)
committerBeno�t Ganne <bganne@cisco.com>
Thu, 12 Jan 2023 13:18:36 +0000 (13:18 +0000)
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

13 files changed:
src/tools/g2/clib.c
src/tools/g2/cpel.c
src/tools/g2/events.c
src/tools/perftool/c2cpel.c
src/tools/perftool/cpel_util.c
src/tools/perftool/cpelatency.c
src/tools/perftool/cpeldump.c
src/tools/perftool/cpelinreg.c
src/tools/perftool/cpelstate.c
src/vcl/vppcom.h
src/vlib/physmem.c
src/vppinfra/mpcap.c
src/vppinfra/pcap.c

index 3cfc263..bb1f202 100644 (file)
@@ -21,7 +21,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <unistd.h>
 #include <ctype.h>
index 8bcc91e..0d18734 100644 (file)
@@ -21,7 +21,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <unistd.h>
 #include <ctype.h>
index 09054b7..ef85c20 100644 (file)
@@ -17,7 +17,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/stat.h>
-#include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <arpa/inet.h>
 #include <stdio.h>
index 7204905..b02c506 100644 (file)
@@ -20,7 +20,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <unistd.h>
 #include <ctype.h>
index 4dc1eaf..9667f08 100644 (file)
@@ -20,7 +20,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <unistd.h>
 #include <ctype.h>
index 7b87d60..6a3d4f7 100644 (file)
@@ -21,7 +21,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <unistd.h>
 #include <ctype.h>
index be0a70d..1ccfd6a 100644 (file)
@@ -21,7 +21,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <unistd.h>
 #include <ctype.h>
index 4439990..007e727 100644 (file)
@@ -27,7 +27,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <unistd.h>
 #include <ctype.h>
index 3fd9ccb..78d9c97 100644 (file)
@@ -21,7 +21,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <sys/fcntl.h>
 #include <sys/mman.h>
 #include <unistd.h>
 #include <ctype.h>
index c9f7b8b..81a6634 100644 (file)
@@ -18,8 +18,8 @@
 
 #include <netdb.h>
 #include <errno.h>
-#include <sys/fcntl.h>
-#include <sys/poll.h>
+#include <fcntl.h>
+#include <poll.h>
 #include <sys/epoll.h>
 
 /* *INDENT-OFF* */
index 76f8494..0abfe7e 100644 (file)
@@ -17,7 +17,7 @@
 #include <sys/types.h>
 #include <sys/mount.h>
 #include <sys/mman.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
 #include <sys/stat.h>
 #include <unistd.h>
 
index 8389a7f..d8e36c2 100644 (file)
@@ -13,7 +13,7 @@
  * limitations under the License.
  */
 
-#include <sys/fcntl.h>
+#include <fcntl.h>
 #include <vppinfra/mpcap.h>
 
 /*
index 4f8b6bb..23bb463 100644 (file)
@@ -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>
 
 /**