[syslinux:elflink] fs: Include header for close() prototype

syslinux-bot for Matt Fleming matt.fleming at intel.com
Tue Apr 17 11:24:20 PDT 2012


Commit-ID:  1798b3b5423e1350d039b3d4274fb0351567efd7
Gitweb:     http://www.syslinux.org/commit/1798b3b5423e1350d039b3d4274fb0351567efd7
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Tue, 3 Apr 2012 16:28:52 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Tue, 17 Apr 2012 11:23:41 +0100

fs: Include header for close() prototype

... which avoids the following build warning,

fs/fs.c: In function ‘open_config’:
fs/fs.c:97:2: warning: implicit declaration of function ‘close’

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 core/fs/fs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/core/fs/fs.c b/core/fs/fs.c
index d8f8660..f6b2912 100644
--- a/core/fs/fs.c
+++ b/core/fs/fs.c
@@ -2,6 +2,7 @@
 #include <stdio.h>
 #include <stdbool.h>
 #include <string.h>
+#include <unistd.h>
 #include <dprintf.h>
 #include "core.h"
 #include "dev.h"


More information about the Syslinux-commits mailing list