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
7 +#include <crt_externs.h>
8 +#define __progname (*_NSGetProgname())
9 #include "un-namespace.h"
11 #include "libc_private.h"