47 lines
1.5 KiB
Diff
47 lines
1.5 KiB
Diff
--- origsrc/util-linux-2.24.2/include/blkdev.h 2014-04-24 02:37:04.351704100 -0500
|
|
+++ src/util-linux-2.24.2/include/blkdev.h 2014-07-08 21:17:16.247442300 -0500
|
|
@@ -21,6 +21,10 @@
|
|
|
|
#define DEFAULT_SECTOR_SIZE 512
|
|
|
|
+#ifdef __CYGWIN__
|
|
+#include <cygwin/fs.h>
|
|
+#endif
|
|
+
|
|
#ifdef __linux__
|
|
/* very basic ioclts, should be available everywhere */
|
|
# ifndef BLKROSET
|
|
--- origsrc/util-linux-2.24.2/include/ttyutils.h 2014-04-24 02:37:04.352704100 -0500
|
|
+++ src/util-linux-2.24.2/include/ttyutils.h 2014-07-08 21:51:22.062227800 -0500
|
|
@@ -80,7 +80,10 @@ static inline void reset_virtual_console
|
|
tp->c_oflag &= ~(OLCUC | OCRNL | ONOCR | ONLRET | OFILL | \
|
|
NLDLY|CRDLY|TABDLY|BSDLY|VTDLY|FFDLY);
|
|
tp->c_lflag |= (ISIG | ICANON | IEXTEN | ECHO|ECHOE|ECHOK|ECHOKE|ECHOCTL);
|
|
- tp->c_lflag &= ~(ECHONL|ECHOPRT | NOFLSH | TOSTOP);
|
|
+ tp->c_lflag &= ~(ECHONL | NOFLSH | TOSTOP);
|
|
+#ifdef ECHOPRT
|
|
+ tp->c_lflag &= ~ECHOPRT;
|
|
+#endif
|
|
|
|
if ((flags & UL_TTY_KEEPCFLAGS) == 0) {
|
|
tp->c_cflag |= (CREAD | CS8 | HUPCL);
|
|
--- origsrc/util-linux-2.24.2/lib/randutils.c 2014-04-23 08:28:29.138326200 -0500
|
|
+++ src/util-linux-2.24.2/lib/randutils.c 2014-07-08 21:47:19.052369400 -0500
|
|
@@ -13,8 +13,6 @@
|
|
#include <string.h>
|
|
#include <sys/time.h>
|
|
|
|
-#include <sys/syscall.h>
|
|
-
|
|
#include "randutils.h"
|
|
|
|
#ifdef HAVE_TLS
|
|
@@ -24,6 +22,7 @@
|
|
#endif
|
|
|
|
#if defined(__linux__) && defined(__NR_gettid) && defined(HAVE_JRAND48)
|
|
+#include <sys/syscall.h>
|
|
#define DO_JRAND_MIX
|
|
THREAD_LOCAL unsigned short ul_jrand_seed[3];
|
|
#endif
|