summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/utmpx.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include/utmpx.h')
-rw-r--r--winsup/cygwin/include/utmpx.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/include/utmpx.h b/winsup/cygwin/include/utmpx.h
index 548ad80a3..53b04eda8 100644
--- a/winsup/cygwin/include/utmpx.h
+++ b/winsup/cygwin/include/utmpx.h
@@ -12,6 +12,7 @@
#include <cygwin/utmp.h>
#include <sys/time.h>
+#define _PATH_UTMPX _PATH_UTMP
#define UTMPX_FILE _PATH_UTMP
#ifdef __cplusplus
@@ -46,7 +47,7 @@ extern struct utmpx *getutxid (const struct utmpx *id);
extern struct utmpx *getutxline (const struct utmpx *line);
extern struct utmpx *pututxline (const struct utmpx *utmpx);
extern void setutxent (void);
-extern void utmpxname (const char *file);
+extern int utmpxname (const char *file);
extern void updwtmpx (const char *file, const struct utmpx *utmpx);
#ifdef __cplusplus