Ticket #7008: stdlib.h.patch

File stdlib.h.patch, 726 bytes (added by TriEdgeAI, 7 years ago)

Adds a few missing lines to stdlib.h

  • headers/posix/stdlib.h

    diff --git a/headers/posix/stdlib.h b/headers/posix/stdlib.h
    index aef3e91..41bdb0d 100644
    a b  
    1111#include <limits.h>
    1212#include <stddef.h>
    1313#include <sys/types.h>
     14#include <sys/wait.h>
    1415#include <wchar_t.h>
    1516
    1617#define RAND_MAX      0x7fffffff
    extern unsigned long strtoul(const char *string, char **end, int base); 
    9596extern long long        strtoll(const char *string, char **end, int base);
    9697extern unsigned long long strtoull(const char *string, char **end, int base);
    9798
     99extern long             a64l(const char *s);
     100extern char             *l64a(long value);
     101
    98102/* random number generation */
    99103extern void     srand(unsigned int seed);
    100104extern int      rand(void);