sabotage-linux / netbsd-curses

libcurses and dependencies taken from netbsd and brought into a portable shape (at least to musl or glibc)
Other
147 stars 14 forks source link

[GNUmakefile:375: infocmp/infocmp.o] Error 1 #16

Closed githububub closed 7 years ago

githububub commented 7 years ago

Buildlog based on master (commit ab92743): http://pastebin.com/nKjzFAZG Same build error with v0.1.0. Successfully rebuilt 0.0.4 with MB_LEN_MAX patch on same system.

rofl0r commented 7 years ago

thanks for your report. does this patch fix the build for you ?

diff --git a/infocmp/infocmp.c b/infocmp/infocmp.c
index 909e0cd..c9532e1 100644
--- a/infocmp/infocmp.c
+++ b/infocmp/infocmp.c
@@ -27,6 +27,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */

+#include <netbsd_sys/emalloc.h>
 #include <netbsd_sys/cdefs.h>

 #include <sys/ioctl.h>
@@ -39,7 +40,6 @@
 #include <term_private.h>
 #include <term.h>
 #include <unistd.h>
-#include <netbsd_sys/emalloc.h>

 #define SW 8
rofl0r commented 7 years ago

@githububub due to lack of feedback i just commited the fix and hope that it indeed solves the issue with your toolchain.