changed to work with configure
This commit is contained in:
21
sudo.h
21
sudo.h
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
NO_ROOT_SUDO - sudo will exit if called by root
|
NO_ROOT_SUDO - sudo will exit if called by root
|
||||||
|
|
||||||
SOLARIS - define if using Solaris 2.x
|
SVR4 - define if using Solaris 2.x or SVR4
|
||||||
|
|
||||||
SEND_MAIL_WHEN_NOT_OK - if you want a message sent to ALERTMAIL
|
SEND_MAIL_WHEN_NOT_OK - if you want a message sent to ALERTMAIL
|
||||||
when the user is in the SUDOERS but
|
when the user is in the SUDOERS but
|
||||||
@@ -91,10 +91,9 @@
|
|||||||
BROKEN_GETPASS if using a os with a broken getpass()
|
BROKEN_GETPASS if using a os with a broken getpass()
|
||||||
hpux,aix,irix need this, sudo.h has details
|
hpux,aix,irix need this, sudo.h has details
|
||||||
|
|
||||||
NEED_STRDUP if your os lacks strdup(3)
|
HAVE_STRDUP if your os has strdup(3)
|
||||||
|
|
||||||
USE_CWD if you have getcwd() and not getwd()
|
HAVE_CWD if you have getcwd(3)
|
||||||
(defined by default for hpux)
|
|
||||||
|
|
||||||
USE_TERMIO if you have sysV terminal control
|
USE_TERMIO if you have sysV terminal control
|
||||||
(defined by default for hpux and irix)
|
(defined by default for hpux and irix)
|
||||||
@@ -108,7 +107,7 @@
|
|||||||
HAL if you want lines from 2001 instead of
|
HAL if you want lines from 2001 instead of
|
||||||
insults (must define USE_INSULTS too)
|
insults (must define USE_INSULTS too)
|
||||||
|
|
||||||
STD_HEADERS if you have ansi-compliant header files
|
STDC_HEADERS if you have ansi-compliant header files
|
||||||
|
|
||||||
USE_EXECV if you want to use execv() instead of
|
USE_EXECV if you want to use execv() instead of
|
||||||
execvp()
|
execvp()
|
||||||
@@ -307,7 +306,7 @@ YYSTYPE yylval;
|
|||||||
#define EXTRA_LIST 0x03
|
#define EXTRA_LIST 0x03
|
||||||
|
|
||||||
/* These are the functions that are called in sudo */
|
/* These are the functions that are called in sudo */
|
||||||
#ifdef NEED_STRDUP
|
#ifndef HAVE_STRDUP
|
||||||
char *strdup();
|
char *strdup();
|
||||||
#endif
|
#endif
|
||||||
char *find_path();
|
char *find_path();
|
||||||
@@ -333,12 +332,6 @@ extern char **Argv;
|
|||||||
extern int errno;
|
extern int errno;
|
||||||
extern char ** environ;
|
extern char ** environ;
|
||||||
|
|
||||||
/*
|
|
||||||
* For OS's w/o mode_t
|
|
||||||
*/
|
|
||||||
#ifdef NO_MODE_T
|
|
||||||
typedef int mode_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is to placate hpux
|
* This is to placate hpux
|
||||||
@@ -351,6 +344,6 @@ typedef int mode_t;
|
|||||||
/*
|
/*
|
||||||
* Sun's cpp doesn't define this but it should
|
* Sun's cpp doesn't define this but it should
|
||||||
*/
|
*/
|
||||||
#if defined(SOLARIS) && !defined(__svr4__)
|
#if defined(SVR4) && !defined(__svr4__)
|
||||||
# define __svr4__
|
# define __svr4__
|
||||||
#endif /* SOLARIS */
|
#endif /* SVR4 */
|
||||||
|
Reference in New Issue
Block a user