Fix build error

Close #1182
This commit is contained in:
topjohnwu 2019-03-08 01:01:42 -05:00
parent a57a94040e
commit c345633d80

View File

@ -204,10 +204,10 @@ void mmap_rw(const char *filename, B &buf, L &sz) {
// misc.cpp // misc.cpp
static inline int parse_int(char *s) { return parse_int((const char *) s); }
template <class S> template <class S>
int parse_int(S __s) { int parse_int(S __s) { return parse_int(__s.data()); }
return parse_int(__s.data());
}
int new_daemon_thread(void *(*start_routine) (void *), void *arg = nullptr, int new_daemon_thread(void *(*start_routine) (void *), void *arg = nullptr,
const pthread_attr_t *attr = nullptr); const pthread_attr_t *attr = nullptr);