#include "utf8.h"
#include "efivars.h"
+#ifdef ENABLE_EFI
+
bool is_efi_boot(void) {
return access("/sys/firmware/efi", F_OK) >= 0;
}
static int cmp_uint16(const void *_a, const void *_b) {
const uint16_t *a = _a, *b = _b;
- if (*a < *b)
- return -1;
- if (*a > *b)
- return 1;
-
- return 0;
+ return (int)*a - (int)*b;
}
int efi_get_boot_options(uint16_t **options) {
return 0;
}
+
+#endif