]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/getprogname.c.patch
Libc-763.11.tar.gz
[apple/libc.git] / gen / FreeBSD / getprogname.c.patch
1 --- getprogname.c.orig 2009-11-07 14:51:38.000000000 -0800
2 +++ getprogname.c 2009-11-07 14:51:39.000000000 -0800
3 @@ -3,6 +3,8 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/get
4
5 #include "namespace.h"
6 #include <stdlib.h>
7 +#include <crt_externs.h>
8 +#define __progname (*_NSGetProgname())
9 #include "un-namespace.h"
10
11 #include "libc_private.h"