tech-net archive

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

[PATCH] Fix a comment in sys/un.h



Hey,

I've attached a simple patch that just fixes a comment in sys/un.h.

As you can see right above the change, the #if is for _NETBSD_SOURCE
rather than _XOPEN_SOURCE.

Thanks,
Kris Katterjohn

P.S. I didn't know which mailing list to send to, so I sent to -kern
and -net; I hope that's not a problem.  Also, I'm not subscribed so
please make sure I'm at least CC'd on any replies.
Index: sys/sys/un.h
===================================================================
RCS file: /cvsroot/src/sys/sys/un.h,v
retrieving revision 1.40
diff -u -r1.40 un.h
--- sys/sys/un.h        9 Aug 2007 15:23:01 -0000       1.40
+++ sys/sys/un.h        23 Feb 2008 04:51:57 -0000
@@ -103,7 +103,7 @@
 #if defined(_NETBSD_SOURCE)
 #define SUN_LEN(su) \
        (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
-#endif /* !_XOPEN_SOURCE */
+#endif /* !_NETBSD_SOURCE */
 #endif /* _KERNEL */
 
 #endif /* !_SYS_UN_H_ */


Home | Main Index | Thread Index | Old Index