Ticket #3430: mc-indroduct-wundef-check-03.patch
File mc-indroduct-wundef-check-03.patch, 2.4 KB (added by and, 10 years ago) |
---|
-
lib/unixcompat.h
introduce -Wundef check to catch macro typos more infos about motivation at https://sourceware.org/glibc/wiki/Wundef patch 03/04: use #ifdef for autoconf provided marcos until autoconf switch from un/define marco logic to always existing macro with 0/1 value Signed-off-by: Andreas Mohr <and@gmx.li>
a b 13 13 14 14 #include <sys/types.h> /* BSD */ 15 15 16 #if MAJOR_IN_MKDEV16 #ifdef MAJOR_IN_MKDEV 17 17 #include <sys/mkdev.h> 18 #elif MAJOR_IN_SYSMACROS18 #elif defined MAJOR_IN_SYSMACROS 19 19 #include <sys/sysmacros.h> 20 20 #endif 21 21 -
src/filemanager/filegui.c
a b 53 53 #include <config.h> 54 54 55 55 /* Keep this conditional in sync with the similar conditional in m4.include/mc-get-fs-info. */ 56 #if (( STAT_STATVFS ||STAT_STATVFS64) \57 && ( HAVE_STRUCT_STATVFS_F_BASETYPE ||HAVE_STRUCT_STATVFS_F_FSTYPENAME \58 || (! HAVE_STRUCT_STATFS_F_FSTYPENAME)))56 #if ((defined STAT_STATVFS || defined STAT_STATVFS64) \ 57 && (defined HAVE_STRUCT_STATVFS_F_BASETYPE || defined HAVE_STRUCT_STATVFS_F_FSTYPENAME \ 58 || (! defined HAVE_STRUCT_STATFS_F_FSTYPENAME))) 59 59 #define USE_STATVFS 1 60 60 #else 61 61 #define USE_STATVFS 0 … … 85 85 #include <nfs/nfs_clnt.h> 86 86 #include <nfs/vfs.h> 87 87 #endif 88 #elif HAVE_OS_H /* BeOS */88 #elif defined HAVE_OS_H /* BeOS */ 89 89 #include <fs_info.h> 90 90 #endif 91 91 … … 134 134 #endif 135 135 #endif 136 136 137 #if HAVE_STRUCT_STATVFS_F_BASETYPE137 #ifdef HAVE_STRUCT_STATVFS_F_BASETYPE 138 138 #define STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME f_basetype 139 139 #else 140 #if HAVE_STRUCT_STATVFS_F_FSTYPENAME ||HAVE_STRUCT_STATFS_F_FSTYPENAME140 #if defined HAVE_STRUCT_STATVFS_F_FSTYPENAME || defined HAVE_STRUCT_STATFS_F_FSTYPENAME 141 141 #define STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME f_fstypename 142 #elif HAVE_OS_H /* BeOS */142 #elif defined HAVE_OS_H /* BeOS */ 143 143 #define STATXFS_FILE_SYSTEM_TYPE_MEMBER_NAME fsh_name 144 144 #endif 145 145 #endif -
src/subshell.c
diff -ruN a/src/subshell.c b/src/subshell.c
a b 601 601 602 602 #ifdef HAVE_POSIX_OPENPT 603 603 pty_master = posix_openpt (O_RDWR); 604 #elif HAVE_GETPT604 #elif defined HAVE_GETPT 605 605 /* getpt () is a GNU extension (glibc 2.1.x) */ 606 606 pty_master = getpt (); 607 #elif IS_AIX607 #elif defined IS_AIX 608 608 strcpy (pty_name, "/dev/ptc"); 609 609 pty_master = open (pty_name, O_RDWR); 610 610 #else