-patch following file /data/pkgsrc/devel/gettext-tools/work/gettext-0.22.5/gettext-tools/src/po-xerror.c +#include "po-error.h" #if IN_LIBGETTEXTPO # define program_name getprogname () #else # include "progname.h" #endif +#if IN_LIBGETTEXTPO +# include "getprogname.h" /* gnulib provides the declaration + fallback */ +# define program_name getprogname () +#else +# include "progname.h" +#endif -patch same file /data/pkgsrc/devel/gettext-tools/work/gettext-0.22.5/gettext-tools/src/po-xerror.c +#ifdef __QNX__ +# include +#endif #if IN_LIBGETTEXTPO # include "getprogname.h" - patch following file /data/pkgsrc/devel/gettext-tools/work/gettext-0.22.5/gettext-tools/libgettextpo/error-progname.c +#ifdef __QNX__ +# include +#endif #if IN_LIBGETTEXTPO # include "getprogname.h" - patch following file /data/pkgsrc/devel/gettext-tools/work/gettext-0.22.5/gettext-tools/libgettextpo/xerror.c +#ifdef __QNX__ +# include +#endif #if IN_LIBGETTEXTPO # define program_name getprogname () - patch following file /data/pkgsrc/devel/gettext-tools/work/gettext-0.22.5/gettext-runtime/gnulib-lib/getprogname.h #include +#if HAVE_SYS_PROCESS_H +# include +#endif #if __GNUC__ || (__clang_major__ >= 4) # warning "The include file getprogname.h is deprecated. Use instead." #endif ## Build with following env variables [root@qnxpi /data/pkgsrc/devel/gettext-tools]# ac_cv_search_inet_ntop="-lsocket" ac_cv_search_inet_pton="-lsocket" /data/pkg/bin/bmake install ## After build regenerate PLIST cp /data/pkgsrc/devel/gettext-tools/work/.destdir/data/pkg/./lib/libtextstyle.so.2 /data/pkgsrc/devel/gettext-tools/work/.destdir/data/pkg/./lib/libtextstyle.so cp /data/pkgsrc/devel/gettext-tools/work/.destdir/data/pkg/./lib/libgettextsrc-0.22.5.so /data/pkgsrc/devel/gettext-tools/work/.destdir/data/pkg/./lib/libgettextsrc.so cp /data/pkgsrc/devel/gettext-tools/work/.destdir/data/pkg/./lib/libgettextlib-0.22.5.so /data/pkgsrc/devel/gettext-tools/work/.destdir/data/pkg/./lib/libgettextlib.so cp /data/pkgsrc/devel/gettext-tools/work/.destdir/data/pkg/./lib/libgettextpo.so.5 /data/pkgsrc/devel/gettext-tools/work/.destdir/data/pkg/./lib/libgettextpo.so