Skip to content

Commit a413650

Browse files
committed
Don't declare realpath or pseudo-terminal functions.
These functions are not currently defined, so suppress their declarations in the headers.
1 parent 94d34a1 commit a413650

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

libc-top-half/musl/include/stdlib.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,20 @@ int rand_r (unsigned *);
126126

127127
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) \
128128
|| defined(_BSD_SOURCE)
129+
#ifdef __wasilibc_unmodified_upstream /* WASI has no absolute paths */
129130
char *realpath (const char *__restrict, char *__restrict);
131+
#endif
130132
long int random (void);
131133
void srandom (unsigned int);
132134
char *initstate (unsigned int, char *, size_t);
133135
char *setstate (char *);
134136
int putenv (char *);
137+
#ifdef __wasilibc_unmodified_upstream /* WASI has no pseudo-terminals */
135138
int posix_openpt (int);
136139
int grantpt (int);
137140
int unlockpt (int);
138141
char *ptsname (int);
142+
#endif
139143
char *l64a (long);
140144
long a64l (const char *);
141145
void setkey (const char *);

0 commit comments

Comments
 (0)