Debian Codegraph @

debian/patches/missing-prototypes.patch

raw symbols SCIP
1 Author: Andreas Beckmann <[email protected]>
2 Description: fix building with -Werror=implicit-function-declaration
3 major()/minor() are in sys/sysmacros.h
4 asprintf() is only exposed by stdio.h if _GNU_SOURCE is defined
5
6 --- a/src/SerialImp.c
7 +++ b/src/SerialImp.c
8 @@ -55,6 +55,7 @@
9 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
10 | All trademarks belong to their respective owners.
11 --------------------------------------------------------------------------*/
12 +#define _GNU_SOURCE
13 #if defined(__MWERKS__) /* dima */
14 #include "RXTXPort.h" /* dima */
15 #else /* dima */
16 @@ -146,6 +147,7 @@
17 #ifdef LIBLOCKDEV
18 #include <lockdev.h>
19 #endif /* LIBLOCKDEV */
20 +#include <sys/sysmacros.h>
21
22 extern int errno;
23