We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0952d79 commit a9f5722Copy full SHA for a9f5722
src/detection/bios/bios_windows.c
@@ -27,6 +27,11 @@ typedef struct _SYSTEM_BOOT_ENVIRONMENT_INFORMATION
27
};
28
29
} SYSTEM_BOOT_ENVIRONMENT_INFORMATION;
30
+#elif __OpenBSD__
31
+#include "common/io/io.h"
32
+
33
+#include <fcntl.h>
34
+#include <unistd.h>
35
#endif
36
37
typedef struct FFSmbiosBios
@@ -89,9 +94,12 @@ const char* ffDetectBios(FFBiosResult* bios)
89
94
default: break;
90
95
}
91
96
92
- #elif __HAIKU__ || __OpenBSD__
97
+ #elif __HAIKU__
93
98
// Currently SMBIOS detection is supported in legency BIOS only
99
ffStrbufSetStatic(&bios->type, "BIOS");
100
+ #elif __OpenBSD__
101
+ FF_AUTO_CLOSE_FD int fd = open("/dev/efi", O_RDONLY);
102
+ ffStrbufSetStatic(&bios->type, fd >= 0 ? "UEFI" : "BIOS");
103
104
105
return NULL;
0 commit comments