Fix build by adding some Mac OS X specific files that implement fs function missing on that OS. The functions are stubbed out currently and have not been implemented. However, it does build now. I also added a weak attribute in driver_settings.cpp that I have no idea what does but was necessary to fix the build.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#ifndef _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT
|
||||
#define _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT
|
||||
|
||||
#include_next <sys/stat.h>
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
|
||||
#ifndef UTIME_NOW
|
||||
# define UTIME_NOW (-1)
|
||||
# define UTIME_OMIT (-2)
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
/* assume that futimens() and utimensat() aren't available */
|
||||
int futimens(int fd, const struct timespec times[2]);
|
||||
int utimensat(int fd, const char* path, const struct timespec times[2],
|
||||
int flag);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
# ifndef _HAIKU_BUILD_NO_FUTIMENS
|
||||
# define _HAIKU_BUILD_NO_FUTIMENS 1
|
||||
# endif
|
||||
# ifndef _HAIKU_BUILD_NO_FUTIMESAT
|
||||
# define _HAIKU_BUILD_NO_FUTIMESAT 1
|
||||
# endif
|
||||
# ifndef _HAIKU_BUILD_NO_UTIMENSAT
|
||||
# define _HAIKU_BUILD_NO_UTIMENSAT 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _HAIKU_BUILD_COMPATIBILITY_DARWIN_SYS_STAT */
|
||||
Reference in New Issue
Block a user