Skip to content

Commit

Permalink
fix macos build
Browse files Browse the repository at this point in the history
closes #551

relates to Homebrew/homebrew-core#154003

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 authored and ximion committed Nov 16, 2023
1 parent 32182d7 commit 02ee2d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/as-system-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
#include <dirent.h>
#include <glib.h>

#if defined(__APPLE__)
typedef unsigned int u_int;
typedef unsigned char u_char;
typedef unsigned short u_short;
#endif

#if defined(__linux__)
#include <sys/sysinfo.h>
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
Expand Down

0 comments on commit 02ee2d0

Please sign in to comment.