-patch the following file /data/pkgsrc/devel/libuuid/work/util-linux-2.40.2/lib/strutils.c #include "c.h" +#include #include "nls.h" #include "strutils.h" #include "bitops.h" #include "pathnames.h" -patch the following file /data/pkgsrc/devel/libuuid/work/util-linux-2.40.2/include/ttyutils.h /* VTIME and VMIN can overlap with VEOF and VEOL since they are * only used for non-canonical mode. We just set the at the * beginning, so nothing bad should happen. */ tp->c_cc[VTIME] = 0; tp->c_cc[VMIN] = 1; tp->c_cc[VINTR] = '\003'; tp->c_cc[VQUIT] = '\034'; tp->c_cc[VERASE] = '\177'; /* ASCII DEL (0177) */ tp->c_cc[VKILL] = '\025'; tp->c_cc[VEOF] = '\004'; #ifdef VSWTC tp->c_cc[VSWTC] = _POSIX_VDISABLE; #elif defined(VSWTCH) tp->c_cc[VSWTCH] = _POSIX_VDISABLE; #endif tp->c_cc[VSTART] = '\021'; tp->c_cc[VSTOP] = '\023'; tp->c_cc[VSUSP] = '\032'; tp->c_cc[VEOL] = _POSIX_VDISABLE; tp->c_cc[VREPRINT] = CREPRINT; tp->c_cc[VDISCARD] = CDISCARD; tp->c_cc[VWERASE] = '\027'; tp->c_cc[VLNEXT] = '\026'; tp->c_cc[VEOL2] = _POSIX_VDISABLE; } #endif /* UTIL_LINUX_TTYUTILS_H */ -patch the following file /data/pkgsrc/devel/libuuid/work/util-linux-2.40.2/lib/path.c int ul_path_read_majmin(struct path_cxt *pc, dev_t *res, const char *path) { int rc, maj = 0, min = 0; rc = ul_path_scanf(pc, path, "%d:%d", &maj, &min); if (rc != 2) return -1; if (res) +#ifdef __QNX__ +*res = makedev(0, maj, min); +#else +*res = makedev(maj, min); +#endif return 0; } -patch the following file /data/pkgsrc/devel/libuuid/work/util-linux-2.40.2/lib/sysfs.c static dev_t read_devno(const char *path) { FILE *f; int maj = 0, min = 0; dev_t dev = 0; f = fopen(path, "r" UL_CLOEXECSTR); if (!f) return 0; if (fscanf(f, "%d:%d", &maj, &min) == 2) +dev = makedev(0,maj, min); fclose(f); return dev; }