mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 13:46:41 +02:00
26 lines
670 B
Diff
26 lines
670 B
Diff
diff -ur mstflint-4.25.0/mtcr_ul/mtcr_ul_com.c mstflint-4.25.0/mtcr_ul/mtcr_ul_com.c
|
|
--- mstflint-4.25.0/mtcr_ul/mtcr_ul_com.c 2022-04-28 11:50:04.000000000 +0000
|
|
+++ mstflint-4.25.0/mtcr_ul/mtcr_ul_com.c 2022-05-19 14:06:49.479797274 +0000
|
|
@@ -67,7 +67,13 @@
|
|
#include <endian.h>
|
|
#include <byteswap.h>
|
|
#include <errno.h>
|
|
+#ifndef _GNU_SOURCE
|
|
+#define _GNU_SOURCE
|
|
#include <sys/types.h>
|
|
+#undef _GNU_SOURCE
|
|
+#else
|
|
+#include <sys/types.h>
|
|
+#endif
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include <string.h>
|
|
@@ -77,7 +83,7 @@
|
|
|
|
#if CONFIG_ENABLE_MMAP
|
|
#include <sys/mman.h>
|
|
-#include <sys/pci.h>
|
|
+#include <linux/pci.h>
|
|
#include <sys/ioctl.h>
|
|
#endif
|
|
|