]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-top-half/musl/include/stdlib.h
Don't declare `realpath` or pseudo-terminal functions.
[wasi-libc.git] / libc-top-half / musl / include / stdlib.h
index 9c711e4fa40009c4e3224179b946b9aaed2e41a3..42f628eac7fb4e9bc4274fc475f957eff996b970 100644 (file)
@@ -126,16 +126,20 @@ int rand_r (unsigned *);
 
 #if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
  || defined(_BSD_SOURCE)
+#ifdef __wasilibc_unmodified_upstream /* WASI has no absolute paths */
 char *realpath (const char *__restrict, char *__restrict);
+#endif
 long int random (void);
 void srandom (unsigned int);
 char *initstate (unsigned int, char *, size_t);
 char *setstate (char *);
 int putenv (char *);
+#ifdef __wasilibc_unmodified_upstream /* WASI has no pseudo-terminals */
 int posix_openpt (int);
 int grantpt (int);
 int unlockpt (int);
 char *ptsname (int);
+#endif
 char *l64a (long);
 long a64l (const char *);
 void setkey (const char *);