aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 9ce89636a..136bc33f5 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1242,7 +1242,7 @@ uint32_t getopt32long(char **argv, const char *optstring, const char *longopts,
1242 * By ~2008, OpenBSD 3.4 was changed to survive glibc-like optind = 0 1242 * By ~2008, OpenBSD 3.4 was changed to survive glibc-like optind = 0
1243 * (to interpret it as if optreset was set). 1243 * (to interpret it as if optreset was set).
1244 */ 1244 */
1245#if defined(__GLIBC__) || ENABLE_PLATFORM_MINGW32 1245#if 1 /*def __GLIBC__*/
1246#define GETOPT_RESET() (optind = 0) 1246#define GETOPT_RESET() (optind = 0)
1247#else /* BSD style */ 1247#else /* BSD style */
1248#define GETOPT_RESET() (optind = 1) 1248#define GETOPT_RESET() (optind = 1)
@@ -1612,6 +1612,7 @@ int tcsetattr_stdin_TCSANOW(const struct termios *tp) FAST_FUNC;
1612#define TERMIOS_CLEAR_ISIG (1 << 0) 1612#define TERMIOS_CLEAR_ISIG (1 << 0)
1613#define TERMIOS_RAW_CRNL (1 << 1) 1613#define TERMIOS_RAW_CRNL (1 << 1)
1614#define TERMIOS_RAW_INPUT (1 << 2) 1614#define TERMIOS_RAW_INPUT (1 << 2)
1615int get_termios_and_make_raw(int fd, struct termios *newterm, struct termios *oldterm, int flags) FAST_FUNC;
1615int set_termios_to_raw(int fd, struct termios *oldterm, int flags) FAST_FUNC; 1616int set_termios_to_raw(int fd, struct termios *oldterm, int flags) FAST_FUNC;
1616 1617
1617/* NB: "unsigned request" is crucial! "int request" will break some arches! */ 1618/* NB: "unsigned request" is crucial! "int request" will break some arches! */