Skip to content

Commit

Permalink
ibmi: remove unsupported API posix_fadvise on IBMi PASE
Browse files Browse the repository at this point in the history
The API posix_fadvise is not supported on IBMi PASE
  • Loading branch information
dmabupt authored and cjihrig committed Feb 21, 2020
1 parent 92f320e commit 8147750
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/uvwasi.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
# define PATH_MAX_BYTES (PATH_MAX)
#endif

/* IBMi PASE does not support posix_fadvise() */
#ifdef __PASE__
# undef POSIX_FADV_NORMAL
#endif

static void* default_malloc(size_t size, void* mem_user_data) {
return malloc(size);
}
Expand Down

0 comments on commit 8147750

Please sign in to comment.