Skip to content

Commit 573d891

Browse files
authored
Update ofFileUtils.cpp
1 parent afdae81 commit 573d891

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

libs/openFrameworks/utils/ofFileUtils.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,16 @@
55
#ifndef TARGET_WIN32
66
#include <pwd.h>
77
#include <sys/stat.h>
8+
#include <unistd.h>
9+
#endif
10+
#ifdef EMSCRIPTEN
11+
uid_t geteuid() {
12+
return 0;
13+
}
14+
gid_t getegid() {
15+
return 0
16+
}
817
#endif
9-
1018
#ifdef TARGET_OSX
1119
#include <mach-o/dyld.h> /* _NSGetExecutablePath */
1220
#include <limits.h> /* PATH_MAX */

0 commit comments

Comments
 (0)