Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ksh ksh: Drop support for systems without offsetof(3)
details: https://anonhg.NetBSD.org/src/rev/07021453de31
branches: trunk
changeset: 354621:07021453de31
user: kamil <kamil%NetBSD.org@localhost>
date: Thu Jun 22 23:42:35 2017 +0000
description:
ksh: Drop support for systems without offsetof(3)
diffstat:
bin/ksh/sh.h | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (27 lines):
diff -r 17959a81feb6 -r 07021453de31 bin/ksh/sh.h
--- a/bin/ksh/sh.h Thu Jun 22 23:38:49 2017 +0000
+++ b/bin/ksh/sh.h Thu Jun 22 23:42:35 2017 +0000
@@ -1,10 +1,10 @@
-/* $NetBSD: sh.h,v 1.23 2017/06/22 23:38:49 kamil Exp $ */
+/* $NetBSD: sh.h,v 1.24 2017/06/22 23:42:35 kamil Exp $ */
/*
* Public Domain Bourne/Korn shell
*/
-/* $Id: sh.h,v 1.23 2017/06/22 23:38:49 kamil Exp $ */
+/* $Id: sh.h,v 1.24 2017/06/22 23:42:35 kamil Exp $ */
#include "config.h" /* system and option configuration info */
@@ -104,10 +104,6 @@
# define DEFAULT__PATH DEFAULT_PATH
#endif /* _PATH_DEFPATH */
-#ifndef offsetof
-# define offsetof(type,id) ((size_t)&((type*)NULL)->id)
-#endif
-
#ifndef HAVE_KILLPG
# define killpg(p, s) kill(-(p), (s))
#endif /* !HAVE_KILLPG */
Home |
Main Index |
Thread Index |
Old Index