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/libsockin can we please stop breaking the b...



details:   https://anonhg.NetBSD.org/src/rev/75b50457844f
branches:  trunk
changeset: 785542:75b50457844f
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 19 02:07:43 2013 +0000

description:
can we please stop breaking the build? These get compiled by the kernel
environment when there are no userland header files!

diffstat:

 sys/rump/net/lib/libsockin/rumpcomp_user.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 132800ad9cd3 -r 75b50457844f sys/rump/net/lib/libsockin/rumpcomp_user.c
--- a/sys/rump/net/lib/libsockin/rumpcomp_user.c        Tue Mar 19 01:00:16 2013 +0000
+++ b/sys/rump/net/lib/libsockin/rumpcomp_user.c        Tue Mar 19 02:07:43 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpcomp_user.c,v 1.1 2013/03/18 13:14:11 pooka Exp $  */
+/*     $NetBSD: rumpcomp_user.c,v 1.2 2013/03/19 02:07:43 christos Exp $       */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -25,6 +25,7 @@
  * SUCH DAMAGE.
  */
 
+#ifndef _KERNEL
 #include <sys/types.h>
 #include <sys/socket.h>
 
@@ -164,3 +165,4 @@
        seterror();
        return rv;
 }
+#endif



Home | Main Index | Thread Index | Old Index