[syslinux:elflink] sys/fileread.c: Fix build warning from missing prototype

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

Commit-ID:  cc6974e038600bd51571c31c3d70cf18549e00e1
Gitweb:     http://www.syslinux.org/commit/cc6974e038600bd51571c31c3d70cf18549e00e1
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Fri, 30 Mar 2012 13:16:00 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Tue, 17 Apr 2012 10:58:25 +0100

sys/fileread.c: Fix build warning from missing prototype

Include the appropriate header to fix the following warning,

sys/fileread.c: In function ‘__file_get_block’:
sys/fileread.c:45:5: warning: implicit declaration of function ‘pmapi_read_file’

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

 com32/lib/sys/fileread.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/com32/lib/sys/fileread.c b/com32/lib/sys/fileread.c
index 7d9e1b9..26b0ceb 100644
--- a/com32/lib/sys/fileread.c
+++ b/com32/lib/sys/fileread.c
@@ -34,6 +34,7 @@
 #include <errno.h>
 #include <string.h>
 #include <com32.h>
+#include <pmapi.h>
 #include <syslinux/pmapi.h>
 #include <minmax.h>
 #include "file.h"

More information about the Syslinux-commits mailing list