aboutsummaryrefslogtreecommitdiffstats
path: root/patch_cmds/diffstat
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-05-10 09:37:27 -0400
committerCameron Katri <me@cameronkatri.com>2021-05-10 09:37:27 -0400
commit911b83fe05d682c541e38fecd55fdad0755be2ca (patch)
tree9f4fe9a1fc58dbae3a3153ab68b2571ce3e1d1b3 /patch_cmds/diffstat
parentb97536ac7d04672f18be04ae717f48ba84fb1510 (diff)
downloadapple_cmds-911b83fe05d682c541e38fecd55fdad0755be2ca.tar.gz
apple_cmds-911b83fe05d682c541e38fecd55fdad0755be2ca.tar.zst
apple_cmds-911b83fe05d682c541e38fecd55fdad0755be2ca.zip
patch_cmds: diffstat without autotools
Diffstat (limited to 'patch_cmds/diffstat')
-rw-r--r--patch_cmds/diffstat/Makefile5
-rw-r--r--patch_cmds/diffstat/diffstat.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/patch_cmds/diffstat/Makefile b/patch_cmds/diffstat/Makefile
new file mode 100644
index 0000000..ae9c6ca
--- /dev/null
+++ b/patch_cmds/diffstat/Makefile
@@ -0,0 +1,5 @@
+PROG= diffstat
+
+CFLAGS+=-DHAVE_CONFIG_H
+
+.include <bsd.prog.mk>
diff --git a/patch_cmds/diffstat/diffstat.c b/patch_cmds/diffstat/diffstat.c
index 7027ba3..c09f585 100644
--- a/patch_cmds/diffstat/diffstat.c
+++ b/patch_cmds/diffstat/diffstat.c
@@ -171,7 +171,7 @@ static const char *Id = "$Id: diffstat.c,v 1.55 2012/01/03 09:44:24 tom Exp $";
*/
#if defined(HAVE_CONFIG_H)
-#include <config.h>
+#include "config.h"
#endif
#if defined(WIN32) && !defined(HAVE_CONFIG_H)