From 19c13c72f69cd35449add4c07cf9dd6ff7ff0810 Mon Sep 17 00:00:00 2001 From: David Adam Date: Fri, 18 Mar 2016 11:45:48 +0800 Subject: [PATCH] env_universal_common: use uid_t in geteuid checks The u_int typedef fails to compile on all platforms (e.g. Windows). It is part of the code imported from tmux. Update it to the SUS-standard uid_t. Closes #2821. --- src/env_universal_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env_universal_common.cpp b/src/env_universal_common.cpp index a0b4ebfdc..71fb1667d 100644 --- a/src/env_universal_common.cpp +++ b/src/env_universal_common.cpp @@ -129,7 +129,7 @@ static int check_runtime_path(const char * path) */ struct stat statpath; - u_int uid = geteuid(); + uid_t uid = geteuid(); if (mkdir(path, S_IRWXU) != 0 && errno != EEXIST) return errno;