From e2ccf87e5cc4da13833276282df544844f0cf1c2 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 13 Feb 2019 14:56:17 +0530 Subject: Fix compilation for fops-sanity.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this patch the following error is seen: .... warning: implicit declaration of function ‘makedev’ [-Wimplicit-function-declaration] ret = mknod("cspecial", S_IFCHR | S_IRWXU | S_IRWXG, makedev(2, 3)); ^~~~~~~ /usr/bin/ld: /tmp/ccIVwT46.o: in function `path_based_fops': /home/pk/workspace/gerrit-repo/tests/basic/fops-sanity.c:478: undefined reference to `makedev' .... updates bz#1676797 Change-Id: I8a17c38fdfd458dd2dc75f4c7e2bf20ce555a042 Signed-off-by: Pranith Kumar K --- tests/basic/fops-sanity.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/basic/fops-sanity.c b/tests/basic/fops-sanity.c index aff72d89ca1..ef00aa0f088 100644 --- a/tests/basic/fops-sanity.c +++ b/tests/basic/fops-sanity.c @@ -26,6 +26,7 @@ #include #include #include +#include #ifndef linux #include -- cgit