]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - include/nc_access.h
ncurses 6.4 - patch 20230418
[ncurses.git] / include / nc_access.h
index 1d86dfa17bdd6e54a537cf429d6698e8d1b099f3..d02aedc08c878cd28e2f16007ef3855e7c0b47a9 100644 (file)
@@ -1,5 +1,5 @@
 /****************************************************************************
- * Copyright 2021 Thomas E. Dickey                                          *
+ * Copyright 2021,2023 Thomas E. Dickey                                     *
  *                                                                          *
  * Permission is hereby granted, free of charge, to any person obtaining a  *
  * copy of this software and associated documentation files (the            *
@@ -26,7 +26,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 
-/* $Id: nc_access.h,v 1.1 2021/06/26 21:38:47 tom Exp $ */
+/* $Id: nc_access.h,v 1.3 2023/04/17 23:29:12 tom Exp $ */
 
 #ifndef NC_ACCESS_included
 #define NC_ACCESS_included 1
@@ -34,6 +34,7 @@
 
 #include <ncurses_cfg.h>
 #include <curses.h>
+#include <sys/types.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -43,16 +44,13 @@ extern "C" {
  * Turn off this symbol to limit access to environment variables when root.
  */
 #ifdef USE_ROOT_ENVIRON
-
 #define use_terminfo_vars() 1
-
 #else
-
 #define use_terminfo_vars() _nc_env_access()
-extern NCURSES_EXPORT(int) _nc_env_access (void);
-
 #endif
 
+extern NCURSES_EXPORT(int) _nc_env_access (void);
+
 /*
  * Turn off this symbol to limit access to files when running setuid.
  */