xref: /freebsd-src/contrib/libdiff/compat/getprogname_linux.c (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1*59c8e88eSDag-Erling Smørgrav #define _GNU_SOURCE
2*59c8e88eSDag-Erling Smørgrav #include <errno.h>
3*59c8e88eSDag-Erling Smørgrav 
4*59c8e88eSDag-Erling Smørgrav const char *
getprogname(void)5*59c8e88eSDag-Erling Smørgrav getprogname(void)
6*59c8e88eSDag-Erling Smørgrav {
7*59c8e88eSDag-Erling Smørgrav 	return program_invocation_short_name;
8*59c8e88eSDag-Erling Smørgrav }
9