Explorar o código

fix musl compile, from sab0tage

Waldemar Brodkorb %!s(int64=12) %!d(string=hai) anos
pai
achega
24bcf9338f
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      package/screen/Makefile

+ 8 - 0
package/screen/Makefile

@@ -21,6 +21,14 @@ $(eval $(call PKG_template,SCREEN,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PK
 CONFIGURE_ENV+=		$(foreach flag,rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime,ac_cv_func_${flag}=yes)
 CONFIGURE_ARGS+=	--with-sys-screenrc=/etc/screenrc
 
+pre-build:
+	echo '#undef UTMPOK' >> ${WRKBUILD}/config.h
+	echo '#undef LOGINDEFAULT' >> ${WRKBUILD}/config.h
+	echo '#define LOGINDEFAULT 0' >> ${WRKBUILD}/config.h
+	echo '#undef GETUTENT' >> ${WRKBUILD}/config.h
+	echo '#undef UTHOST' >> ${WRKBUILD}/config.h
+	echo '#undef BUGGYGETLOGIN' >> ${WRKBUILD}/config.h
+
 post-install:
 	${INSTALL_DIR} ${IDIR_SCREEN}/usr/bin
 	${INSTALL_BIN} ${WRKINST}/usr/bin/screen ${IDIR_SCREEN}/usr/bin/