Fix build break

This commit is contained in:
Justine Tunney 2023-01-08 15:35:08 -08:00
parent 2bad436abf
commit be3e109309
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,7 @@
#include "libc/stdio/stdio.h"
#include "libc/str/str.h"
#include "libc/sysv/consts/o.h"
#include "libc/sysv/errfuns.h"
static const char *fixpathname(const char *pathname, int flags) {
if ((flags & O_ACCMODE) == O_RDONLY && strcmp(pathname, "-") == 0) {

View file

@ -67,7 +67,7 @@ int putchar(int);
int puts(const char *);
ssize_t getline(char **, size_t *, FILE *) paramsnonnull();
ssize_t getdelim(char **, size_t *, int, FILE *) paramsnonnull();
FILE *fopen(const char *, const char *) paramsnonnull() dontdiscard;
FILE *fopen(const char *, const char *) paramsnonnull((2)) dontdiscard;
FILE *fdopen(int, const char *) paramsnonnull() dontdiscard;
FILE *fmemopen(void *, size_t, const char *) paramsnonnull((3)) dontdiscard;
FILE *freopen(const char *, const char *, FILE *) paramsnonnull((2, 3));