$NetBSD: patch-ac,v 1.12 2005/03/07 23:29:49 tv Exp $ --- defines.h.orig 2004-06-21 23:27:16.000000000 -0400 +++ defines.h @@ -30,6 +30,15 @@ /* Constants */ +#ifdef HAVE_INTERIX +/* Interix has a special concept of "administrator". */ +# define ROOTUID 197108 +# define ROOTGID 131616 +#else +# define ROOTUID 0 +# define ROOTGID 0 +#endif + #ifndef SHUT_RDWR enum { @@ -424,8 +433,8 @@ struct winsize { # define __attribute__(x) #endif /* !defined(__GNUC__) || (__GNUC__ < 2) */ -#ifndef __dead -# define __dead __attribute__((noreturn)) +#ifndef __noreturn +# define __noreturn __attribute__((noreturn)) #endif /* *-*-nto-qnx doesn't define this macro in the system headers */ @@ -591,6 +600,24 @@ struct winsize { # endif # endif #endif +#ifndef UTMPX_FILE +# ifdef _PATH_UTMPX +# define UTMPX_FILE _PATH_UTMPX +# else +# ifdef CONF_UTMPX_FILE +# define UTMPX_FILE CONF_UTMPX_FILE +# endif +# endif +#endif +#ifndef WTMPX_FILE +# ifdef _PATH_WTMPX +# define WTMPX_FILE _PATH_WTMPX +# else +# ifdef CONF_WTMPX_FILE +# define WTMPX_FILE CONF_WTMPX_FILE +# endif +# endif +#endif /* pick up the user's location for lastlog if given */ #ifndef LASTLOG_FILE # ifdef _PATH_LASTLOG