ksh: Drop support for systems without offsetof(3)

This commit is contained in:
kamil 2017-06-22 23:42:35 +00:00
parent bdcebfe8f5
commit eed5a31e9b

View File

@ -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((int)); /* signal handler */
# 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 */