include stdlib.h to fix compilation #4

Merged
mirsella merged 1 commit from patch-1 into master 2023-12-05 15:52:04 -06:00
mirsella commented 2023-12-05 15:21:40 -06:00 (Migrated from github.com)

hello ! Compilation fail for me, this fix it, thanks

lib/ext2.c:117:2: error: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        free(vstr);
        ^
lib/ext2.c:117:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'free'
lib/ext2.c:198:13: error: call to undeclared library function 'strtol' with type 'long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                version = strtol(temp, NULL, 10);
                          ^
lib/ext2.c:198:13: note: include the header <stdlib.h> or explicitly provide a declaration for 'strtol'
2 errors generated.
make: *** [lib/Makefile.inc:200: lib/ext2.o] Error 1
make: *** Waiting for unfinished jobs....
hello ! Compilation fail for me, this fix it, thanks ``` lib/ext2.c:117:2: error: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] free(vstr); ^ lib/ext2.c:117:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'free' lib/ext2.c:198:13: error: call to undeclared library function 'strtol' with type 'long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] version = strtol(temp, NULL, 10); ^ lib/ext2.c:198:13: note: include the header <stdlib.h> or explicitly provide a declaration for 'strtol' 2 errors generated. make: *** [lib/Makefile.inc:200: lib/ext2.o] Error 1 make: *** Waiting for unfinished jobs.... ```
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
miles/xar!4
No description provided.