Module Name:    src
Committed By:   riastradh
Date:           Sat Feb  6 15:36:36 UTC 2016

Modified Files:
        src/sys/sys: exec_elf.h

Log Message:
Don't do _BSD_SIZE_T_ dance here.  Use <stddef.h> in userland.

This file is used in tools, where _BSD_SIZE_T_ is unreliable.  In the
kernel, <sys/types.h> will define size_t anyway.  Outside the kernel,
<stddef.h> is the standard way to get size_t.


To generate a diff of this commit:
cvs rdiff -u -r1.151 -r1.152 src/sys/sys/exec_elf.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/exec_elf.h
diff -u src/sys/sys/exec_elf.h:1.151 src/sys/sys/exec_elf.h:1.152
--- src/sys/sys/exec_elf.h:1.151	Sun Nov  1 17:44:42 2015
+++ src/sys/sys/exec_elf.h	Sat Feb  6 15:36:36 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: exec_elf.h,v 1.151 2015/11/01 17:44:42 christos Exp $	*/
+/*	$NetBSD: exec_elf.h,v 1.152 2016/02/06 15:36:36 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -44,13 +44,9 @@
 #include <sys/types.h>
 #else
 #include <inttypes.h>
+#include <stddef.h>
 #endif /* _KERNEL || _STANDALONE */
 
-#ifdef   _BSD_SIZE_T_
-typedef  _BSD_SIZE_T_    size_t;
-#undef   _BSD_SIZE_T_
-#endif
-
 #if HAVE_NBTOOL_CONFIG_H
 #include <nbinclude/machine/elf_machdep.h>
 #else

Reply via email to