jwiegley / c2hsc

Utility for creating .hsc files from C API header files
BSD 3-Clause "New" or "Revised" License
26 stars 15 forks source link

c2hsc not recursive and some headers require it #35

Open cleverca22 opened 6 years ago

cleverca22 commented 6 years ago

c2hsc glibc/include/sched.h lacks unshare() because its in bits/sched.h but

[nix-shell:~/apps/nixos-configs/namespacer]$ c2hsc glibc/include/bits/sched.h
glibc/include/bits/sched.h:24:3: error: #error "Never include <bits/sched.h> directly; use <sched.h> instead."
 # error "Never include <bits/sched.h> directly; use <sched.h> instead."
   ^~~~~

you cant just run it on the right header file either