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 <fcntl.h>



details:   https://anonhg.NetBSD.org/src/rev/8b9f01d5c2ad
branches:  trunk
changeset: 824920:8b9f01d5c2ad
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Jun 22 23:37:00 2017 +0000

description:
ksh: Drop support for systems without <fcntl.h>

diffstat:

 bin/ksh/config.h |   5 +----
 bin/ksh/sh.h     |  10 +++-------
 2 files changed, 4 insertions(+), 11 deletions(-)

diffs (49 lines):

diff -r b3dc1989f5bd -r 8b9f01d5c2ad bin/ksh/config.h
--- a/bin/ksh/config.h  Thu Jun 22 23:33:36 2017 +0000
+++ b/bin/ksh/config.h  Thu Jun 22 23:37:00 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: config.h,v 1.27 2017/06/22 23:33:36 kamil Exp $        */
+/*     $NetBSD: config.h,v 1.28 2017/06/22 23:37:00 kamil Exp $        */
 
 /* config.h.  Generated automatically by configure.  */
 /* config.h.in.  Generated automatically from configure.in by autoheader.  */
@@ -259,9 +259,6 @@
 /* Define if you have the <dirent.h> header file.  */
 #define HAVE_DIRENT_H 1
 
-/* Define if you have the <fcntl.h> header file.  */
-#define HAVE_FCNTL_H 1
-
 /* Define if you have the <limits.h> header file.  */
 #define HAVE_LIMITS_H 1
 
diff -r b3dc1989f5bd -r 8b9f01d5c2ad bin/ksh/sh.h
--- a/bin/ksh/sh.h      Thu Jun 22 23:33:36 2017 +0000
+++ b/bin/ksh/sh.h      Thu Jun 22 23:37:00 2017 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: sh.h,v 1.21 2017/06/22 23:33:36 kamil Exp $    */
+/*     $NetBSD: sh.h,v 1.22 2017/06/22 23:37:00 kamil Exp $    */
 
 /*
  * Public Domain Bourne/Korn shell
  */
 
-/* $Id: sh.h,v 1.21 2017/06/22 23:33:36 kamil Exp $ */
+/* $Id: sh.h,v 1.22 2017/06/22 23:37:00 kamil Exp $ */
 
 #include "config.h"    /* system and option configuration info */
 
@@ -33,12 +33,8 @@
 #endif /* HAVE_PROTOTYPES */
 
 #include <errno.h>
+#include <fcntl.h>
 
-#ifdef HAVE_FCNTL_H
-# include <fcntl.h>
-#else
-# include <sys/file.h>
-#endif /* HAVE_FCNTL_H */
 #ifndef O_ACCMODE
 # define O_ACCMODE     (O_RDONLY|O_WRONLY|O_RDWR)
 #endif /* !O_ACCMODE */



Home | Main Index | Thread Index | Old Index