mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-23 07:27:21 +08:00
36e398b04e
The SuperH target doesn't build on GCC 14.1 because of missing function prototypes or because some function declarations use the deprecated K&R style. This patch adds missing prototypes on the files the functions are used and convert K&R declarations to ANSI-style. Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
12 lines
205 B
C
12 lines
205 B
C
#include <_ansi.h>
|
|
#include <sys/types.h>
|
|
#include "sys/syscall.h"
|
|
|
|
extern int __trap34 (int function, ...);
|
|
|
|
int
|
|
ftruncate (int file, off_t length)
|
|
{
|
|
return __trap34 (SYS_ftruncate, file, length, 0);
|
|
}
|