changeset 11047:76c01730902e

ioctl: avoid warning: no previous prototype for 'rpl_ioctl' * lib/ioctl.c: Include <sys/ioctl.h>.
author Daniel P. Berrange <berrange@redhat.com>
date Mon, 19 Jan 2009 08:04:27 +0100
parents fc3c5c81c192
children b885f8c983db
files ChangeLog lib/ioctl.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
+
+	ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
+	* lib/ioctl.c: Include <sys/ioctl.h>.
+
 2009-01-19  Simon Josefsson  <simon@josefsson.org>
 
 	* modules/getdate-tests (Depends-on): Add progname.
--- a/lib/ioctl.c
+++ b/lib/ioctl.c
@@ -1,6 +1,6 @@
 /* ioctl.c --- wrappers for Windows ioctl function
 
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -19,6 +19,7 @@
 
 #include <config.h>
 
+#include <sys/ioctl.h>
 #include <stdarg.h>
 
 #define WIN32_LEAN_AND_MEAN