summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/io-seek.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libnetfs/io-seek.c b/libnetfs/io-seek.c
index a6066dce..7ff472c0 100644
--- a/libnetfs/io-seek.c
+++ b/libnetfs/io-seek.c
@@ -18,6 +18,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
+#include <unistd.h>
#include "netfs.h"
#include "io_S.h"
@@ -27,6 +28,8 @@ netfs_S_io_seek (struct protid *user,
int whence,
off_t *newoffset)
{
+ error_t err;
+
if (!user)
return EOPNOTSUPP;