Otherwise, we get the following compiler warning:
history.c:289:2: warning: implicit declaration of function ‘chmod’
[-Wimplicit-function-declaration]
if ((chmod(fname, S_IRUSR|S_IWUSR)) != 0) {
^
---
wmcliphist/wmcliphist.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/wmcliphist/wmcliphist.h b/wmcliphist/wmcliphist.h
index 2919172..c55cdc2 100644
--- a/wmcliphist/wmcliphist.h
+++ b/wmcliphist/wmcliphist.h
@@ -11,6 +11,7 @@
#include <unistd.h>
#include <ctype.h>
#include <errno.h>
+#include <sys/stat.h>
#include <fcntl.h>
#include <regex.h>
--
2.1.0
--
To unsubscribe, send mail to [email protected].