Skip to content

Commit

Permalink
as-system-info: Fix unknown type name 'u_long' on macos
Browse files Browse the repository at this point in the history
This is probably a follow-up for 02ee2d0 ("fix macos build")
and unbreaks the build on Nixpkgs x86_64-darwin, probably due to
using even older SDKs?

https://github.com/NixOS/nixpkgs/runs/19486840382

```
> In file included from ../src/as-system-info.c:60:
> In file included from /nix/store/51c1k4sj0irwgyvkgbyhqi0ggilyh3j2-Libsystem-1238.60.2/include/sys/sysctl.h:83:
> /nix/store/51c1k4sj0irwgyvkgbyhqi0ggilyh3j2-Libsystem-1238.60.2/include/sys/ucred.h:91:2: error: unknown type name 'u_long'
>         u_long  cr_ref;                 /* reference count */
>         ^
> 1 error generated.
> ninja: build stopped: subcommand failed.
```
  • Loading branch information
bobby285271 committed Dec 10, 2023
1 parent 25a7317 commit cb7701e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/as-system-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
typedef unsigned int u_int;
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned long u_long;
#endif

#if defined(__linux__)
Expand Down

0 comments on commit cb7701e

Please sign in to comment.