[Pkg-wmaker-commits] [wmcliphist] 07/49: wmcliphist: Add <sys/stat.h> to includes.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 18 01:51:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmcliphist.

commit 30ad8b7be688df59d1d75da828c290d5653da900
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Nov 22 20:48:39 2014 -0600

    wmcliphist: Add <sys/stat.h> to includes.
    
    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.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wmcliphist.h b/wmcliphist.h
index 2919172..c55cdc2 100644
--- a/wmcliphist.h
+++ b/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>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcliphist.git



More information about the Pkg-wmaker-commits mailing list