Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/net/lib/libshmif Unconditionally include <unistd.h>...



details:   https://anonhg.NetBSD.org/src/rev/1c5a9b8d9f3e
branches:  trunk
changeset: 831527:1c5a9b8d9f3e
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Apr 04 09:19:33 2018 +0000

description:
Unconditionally include <unistd.h>, as we use ftruncate() unconditionally
too.
Reported (with patch) by Antonio Huete Jimenez in PR 53153, slightly
modified by me.

diffstat:

 sys/rump/net/lib/libshmif/shmif_user.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r a29b4c0e4c79 -r 1c5a9b8d9f3e sys/rump/net/lib/libshmif/shmif_user.c
--- a/sys/rump/net/lib/libshmif/shmif_user.c    Wed Apr 04 08:59:22 2018 +0000
+++ b/sys/rump/net/lib/libshmif/shmif_user.c    Wed Apr 04 09:19:33 2018 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: shmif_user.c,v 1.1 2014/03/13 01:42:59 pooka Exp $    */
+/*      $NetBSD: shmif_user.c,v 1.2 2018/04/04 09:19:33 martin Exp $   */
 
 /*-
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -29,6 +29,7 @@
 #include <sys/mman.h>
 
 #include <errno.h>
+#include <unistd.h>
 
 #include <rump/rumpuser_component.h>
 
@@ -102,7 +103,6 @@
 
 #include <limits.h>
 #include <stdio.h>
-#include <unistd.h>
 
 int
 rumpcomp_shmif_watchsetup(int *inotifyp, int fd)
@@ -171,7 +171,6 @@
 
 #else
 #include <stdio.h>
-#include <unistd.h>
 
 /* a polling default implementation */
 int



Home | Main Index | Thread Index | Old Index