]> mj.ucw.cz Git - pciutils.git/commitdiff
libpci: windows: Define ERROR_NOT_FOUND
authorPali Rohár <pali@kernel.org>
Mon, 21 Nov 2022 00:20:30 +0000 (01:20 +0100)
committerPali Rohár <pali@kernel.org>
Mon, 21 Nov 2022 00:20:30 +0000 (01:20 +0100)
Fix compile issues with older toolchain which does not define ERROR_NOT_FOUND macro.

lib/win32-kldbg.c

index 3890b6b0a9cfdec0c76243a4a3006c9e17785115..4c8ee5405496e6b006421bf99dc5c3f8533b536c 100644 (file)
 #include "internal.h"
 #include "i386-io-windows.h"
 
+#ifndef ERROR_NOT_FOUND
+#define ERROR_NOT_FOUND 1168
+#endif
+
 #ifndef LOAD_LIBRARY_AS_IMAGE_RESOURCE
 #define LOAD_LIBRARY_AS_IMAGE_RESOURCE 0x20
 #endif