Module Name: src
Committed By: joerg
Date: Thu Feb 26 15:01:53 UTC 2015
Modified Files:
src/sys/sys: bswap.h
Log Message:
lib/49696: Circular dependency and namespace pollution by sys/bswap.h
including sys/types.h for no good reason. Restrict to sys/stdint.h.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/sys/bswap.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/bswap.h
diff -u src/sys/sys/bswap.h:1.17 src/sys/sys/bswap.h:1.18
--- src/sys/sys/bswap.h:1.17 Wed Dec 3 18:33:02 2014
+++ src/sys/sys/bswap.h Thu Feb 26 15:01:53 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: bswap.h,v 1.17 2014/12/03 18:33:02 joerg Exp $ */
+/* $NetBSD: bswap.h,v 1.18 2015/02/26 15:01:53 joerg Exp $ */
/* Written by Manuel Bouyer. Public domain */
@@ -6,8 +6,7 @@
#define _SYS_BSWAP_H_
#ifndef _LOCORE
-#include <sys/cdefs.h>
-#include <sys/types.h>
+#include <sys/stdint.h>
#include <machine/bswap.h>