mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Add missing function attribute to syscall to ensure compatibility with gcc 11.2.0 (Ubuntu 11.2.0-19ubuntu1)
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
static uint8_t already_writing = 0;
|
||||
|
||||
#undef fopen
|
||||
FILE *FTLfopen(const char *pathname, const char *mode, const char *file, const char *func, const int line)
|
||||
FILE * __attribute__ ((__malloc__)) FTLfopen(const char *pathname, const char *mode, const char *file, const char *func, const int line)
|
||||
{
|
||||
FILE *file_ptr = 0;
|
||||
do
|
||||
|
||||
@@ -45,7 +45,7 @@ ssize_t FTLsendto(int sockfd, void *buf, size_t len, int flags, const struct soc
|
||||
int FTLpthread_mutex_lock(pthread_mutex_t *__mutex, const char *file, const char *func, const int line);
|
||||
|
||||
// Interrupt-safe file routines
|
||||
FILE *FTLfopen(const char *pathname, const char *mode, const char *file, const char *func, const int line);
|
||||
FILE *FTLfopen(const char *pathname, const char *mode, const char *file, const char *func, const int line) __attribute__ ((__malloc__));
|
||||
|
||||
// Syscall helpers
|
||||
void syscalls_report_error(const char *error, FILE *stream, const int _errno, const char *format, const char *func, const char *file, const int line);
|
||||
|
||||
Reference in New Issue
Block a user