https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
8 lines
170 B
C
8 lines
170 B
C
// This one should not come from libc because of -nostdinc
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
// provided by our own stdio.h
|
|
foo();
|
|
return 0;
|
|
}
|