Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build fail stat64 on mac 10.14 #147

Open
8427003 opened this issue Jan 27, 2019 · 1 comment
Open

build fail stat64 on mac 10.14 #147

8427003 opened this issue Jan 27, 2019 · 1 comment

Comments

@8427003
Copy link

8427003 commented Jan 27, 2019

/Users/lijun/Downloads/wangle-2019.01.21.00/wangle/util/FilePoller.cpp:149:13: warning: 'stat64' is deprecated: first deprecated
in macOS 10.6 [-Wdeprecated-declarations]
int ret = stat64(path.c_str(), &info);
^
/usr/include/sys/stat.h:402:5: note: 'stat64' has been explicitly marked deprecated here
int stat64(const char *, struct stat64 *) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_6,__IPHONE_NA,__IPHONE_NA);
^
/Users/lijun/Downloads/wangle-2019.01.21.00/wangle/util/FilePoller.cpp:156:37: error: no member named 'st_mtim' in 'stat64'
std::chrono::seconds(info.st_mtim.tv_sec) +
~~~~ ^
/Users/lijun/Downloads/wangle-2019.01.21.00/wangle/util/FilePoller.cpp:157:41: error: no member named 'st_mtim' in 'stat64'
std::chrono::nanoseconds(info.st_mtim.tv_nsec))}

@tanjialiang
Copy link

I have encountered the exact same problem. My MacOS is Mojave 10.14.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants