summaryrefslogtreecommitdiff
path: root/common/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/compat.h')
-rw-r--r--common/compat.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/common/compat.h b/common/compat.h
index 1562964..b2774f1 100644
--- a/common/compat.h
+++ b/common/compat.h
@@ -32,11 +32,15 @@
* Author: Stef Walter <stefw@collabora.co.uk>
*/
-#ifndef __ERR_H__
-#define __ERR_H__
+#ifndef __COMPAT_H__
+#define __COMPAT_H__
#include "config.h"
+#ifndef HAVE_GETPROGNAME
+const char * getprogname (void);
+#endif
+
#ifdef HAVE_ERR_H
#include <err.h>
@@ -60,4 +64,4 @@ void vwarnx (const char *fmt, va_list ap);
#endif /* !HAVE_ERR_H */
-#endif /* __ERR_H__ */
+#endif /* __COMPAT_H__ */