File partclone-missing-includes.patch of Package partclone
From 04391d72f31789051753b814837ae3bc2f31f5b4 Mon Sep 17 00:00:00 2001
From: Dominique Leuenberger <dimstar@opensuse.org>
Date: Wed, 24 Jun 2015 12:15:11 +0200
Subject: [PATCH] Fix missing includes
When building with gcc5, string.h is no longer implicit included and the
source must declare the includes.
Otherwise, the build 'warns' about this error (which can have quite bad
results):
[ 26s] ./src/deplib_version.c:31:9: warning: implicit declaration of
function 'strcmp' [-Wimplicit-function-declaration]
[ 26s] if (strcmp(libfs, "ntfs") == 0){
Spotted by openSUSE Build Root Policy verification:
[ 40s] E: partclone implicit-fortify-decl ./src/deplib_version.c:31
---
src/deplib_version.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/deplib_version.c b/src/deplib_version.c
index 987b711..807bcbd 100644
--- a/src/deplib_version.c
+++ b/src/deplib_version.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <string.h> // for strcmp()
#ifdef EXTFS
#include <ext2fs/ext2fs.h>
--
2.4.3