diff options
Diffstat (limited to 'libgo/runtime/go-nosys.c')
-rw-r--r-- | libgo/runtime/go-nosys.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libgo/runtime/go-nosys.c b/libgo/runtime/go-nosys.c index deacec5..4a30a57 100644 --- a/libgo/runtime/go-nosys.c +++ b/libgo/runtime/go-nosys.c @@ -116,6 +116,15 @@ inotify_init (void) } #endif +#ifndef HAVE_INOTIFY_INIT1 +int +inotify_init1 (int flags __attribute__ ((unused))) +{ + errno = ENOSYS; + return -1; +} +#endif + #ifndef HAVE_INOTIFY_RM_WATCH int inotify_rm_watch (int fd __attribute__ ((unused)), @@ -187,6 +196,18 @@ splice (int fd __attribute__ ((unused)), } #endif +#ifndef HAVE_SYNC_FILE_RANGE +int +sync_file_range (int fd __attribute__ ((unused)), + off64_t offset __attribute__ ((unused)), + off64_t nbytes __attribute__ ((unused)), + unsigned int flags __attribute__ ((unused))) +{ + errno = ENOSYS; + return -1; +} +#endif + #ifndef HAVE_TEE int tee (int fd_in __attribute__ ((unused)), |