You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-block/di/files/di-4.33-build.patch

41 lines
1.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

These are the first errors occuring:
di.h:82:4: error: unknown type name error
di.h:82:19: error: expected =, ,, ;, asm or __attribute__ before / token
di.h:143:5: error: unknown type name _fs_size_t
Then there is a lot more errors after above.
memcpy can't be detected normally due to:
http://gcc.gnu.org/PR55890
--- a/C/di.h
+++ b/C/di.h
@@ -9,6 +9,8 @@
#include "config.h"
+#include <string.h>
+
/*****************************************************/
#include <stdio.h>
@@ -79,7 +81,7 @@
#if ! _lib_memcpy && ! _define_memcpy
# if ! _lib_bcopy && ! _define_bcopy
- #error No_memcpy/bcopy_available.
+ //#error No_memcpy/bcopy_available.
# else
# define memcpy(dst, src, cnt) (bcopy((src), (dst), (cnt)), dst)
# endif
@@ -87,7 +89,7 @@
#if ! _lib_memset && ! _define_memset
# if ! _lib_bzero && ! _define_bzero
- #error No_memset/bzero_available.
+ //#error No_memset/bzero_available.
# else
# define memset(s,c,n) (bzero ((s), (n)), s)
# endif