Module Name:    src
Committed By:   kamil
Date:           Thu Jun 22 23:42:35 UTC 2017

Modified Files:
        src/bin/ksh: sh.h

Log Message:
ksh: Drop support for systems without offsetof(3)


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/bin/ksh/sh.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/ksh/sh.h
diff -u src/bin/ksh/sh.h:1.23 src/bin/ksh/sh.h:1.24
--- src/bin/ksh/sh.h:1.23	Thu Jun 22 23:38:49 2017
+++ src/bin/ksh/sh.h	Thu Jun 22 23:42:35 2017
@@ -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 @@ typedef	RETSIGTYPE (*handler_t) ARGS((in
 # 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 */

Reply via email to