in_cksum.h for sparc64 missing ifdef KERNEL?

View: New views
1 Messages — Rating Filter:   Alert me  

in_cksum.h for sparc64 missing ifdef KERNEL?

by Ulrich Spörlein-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

while trying to cleanup some WARNS issues under sbin/, I noticed that
natd(8) fails to compile for sparc64 only, due to missing "struct
mbuf" declaration in in_cksum.h. Comparing that header to other arch's
headers leads me to believe an #ifdef is missing.

See attached patch, but please note that I do not have the resources to
run this through a make universe right now.

Regards,
Uli


1618[tip]   350410f79434   2009-10-26 21:02 +0100   uqs
  Put this under KERNEL just like all other arch do.

diff -r 5558195fb93d -r 350410f79434 sys/sparc64/include/in_cksum.h
--- a/sys/sparc64/include/in_cksum.h Mon Oct 26 19:57:23 2009 +0100
+++ b/sys/sparc64/include/in_cksum.h Mon Oct 26 21:02:06 2009 +0100
@@ -164,6 +164,8 @@
  return (__ret);
 }
 
+#ifdef _KERNEL
 u_short in_cksum_skip(struct mbuf *m, int len, int skip);
+#endif
 
 #endif /* _MACHINE_IN_CKSUM_H_ */



_______________________________________________
freebsd-hackers@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@..."