fix leaks
[m6w6/ext-psi] / m4 / posix / stdlib.m4
index f1a0c959ccb35fc062994f848d2b5505b10fe27b..08408836b75c00a9b0be8e1ad73fa62ea3183906 100644 (file)
@@ -1,6 +1,4 @@
 PSI_CHECK_STDLIB() {
-       AC_CHECK_HEADERS(stdlib.h)
-
        PSI_STRUCT(div_t, [
                int quot,
                int rem
@@ -49,7 +47,7 @@ PSI_CHECK_STDLIB() {
        PSI_DECL(long nrand48, [(unsigned short xsubi@<:@3@:>@)])
        PSI_DECL(int posix_openpt, [(int flags)])
        PSI_DECL(char *ptsname, [(int fd)])
-       PSI_DECL(char *pstname_r, [(int fd, char *buf, size_t buflen)])
+       PSI_DECL(int ptsname_r, [(int fd, char *buf, size_t buflen)])
        PSI_DECL(int putenv, [(char *var)])
        PSI_DECL(int rand, [()])
        PSI_DECL(int rand_r, [(unsigned *seed_p)])