add freebsd version check

This commit is contained in:
quackerd 2022-06-15 02:07:55 +08:00
parent 31f903ba3e
commit e524b6e0c8

View File

@ -2,11 +2,15 @@
#include <stdio.h>
#include <stdint.h>
#include <sys/param.h>
#ifdef __cplusplus
extern "C" {
#endif
#if __FreeBSD_version < 1301000
#error libbsdtopo only works on FreeBSD 13.1 and later
#endif
struct topo_desc;
int