cosmetics on top of Dan's patches
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 19 Jun 2010 18:07:23 +0000 (20:07 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 19 Jun 2010 18:07:23 +0000 (20:07 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/libunarchive/unxz/xz_config.h
networking/ipcalc.c
scripts/trylink

index a4141e136ca2a0c1c2d84eeae6b133f9ab418597..187e1cbed6cfa6d76901326b120741b102fdf055 100644 (file)
@@ -32,9 +32,9 @@
 #define memeq(a, b, size) (memcmp(a, b, size) == 0)
 #define memzero(buf, size) memset(buf, 0, size)
 
-#ifndef min
+#undef min
+#undef min_t
 #define min(x, y) ((x) < (y) ? (x) : (y))
-#endif
 #define min_t(type, x, y) min(x, y)
 
 /*
index 87f31fdb53eb02dc01d6acd5e1e043488aa9b373..265009ad8552e5abd81fbc1daa51c2b77dd43b0e 100644 (file)
  *
  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
  */
-
 #include "libbb.h"
-
-#include <sys/socket.h>
+/* After libbb.h, because on some systems it needs other includes */
 #include <arpa/inet.h>
 
 #define CLASS_A_NETMASK        ntohl(0xFF000000)
index 021374aa9e1f3c3a6b81b9dc695e0a943f8a8304..5994a757bc1a3fc35994f0a3528e7eb72695da4a 100755 (executable)
@@ -87,7 +87,6 @@ SORT_SECTION=`check_cc "-Wl,--sort-section,alignment" ""`
 
 START_GROUP="-Wl,--start-group"
 END_GROUP="-Wl,--end-group"
-
 INFO_OPTS="-Wl,--warn-common -Wl,-Map,$EXE.map -Wl,--verbose"
 
 # gold may not support --sort-common (yet)