compat and warning fixes
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 8 Feb 2010 23:26:10 +0000 (00:26 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 8 Feb 2010 23:26:10 +0000 (00:26 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/fsync.c
miscutils/fbsplash.c

index f00803c5bf7f8e583f4d761eafa84852c652090c..53900f8d26d332507da84463a1422eeb5de2c093 100644 (file)
@@ -7,6 +7,9 @@
  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
  */
 #include "libbb.h"
+#ifndef O_NOATIME
+# define O_NOATIME 0
+#endif
 
 /* This is a NOFORK applet. Be very careful! */
 
index 4560bb2e99e1a135907699f5501520797b38f5c7..3bf16abc8145a8f5ac70504d41ebed6d3efbff78 100644 (file)
@@ -301,7 +301,7 @@ static void fb_drawimage(void)
  */
 static void init(const char *cfg_filename)
 {
-       static const char const param_names[] ALIGN1 =
+       static const char param_names[] ALIGN1 =
                "BAR_WIDTH\0" "BAR_HEIGHT\0"
                "BAR_LEFT\0" "BAR_TOP\0"
                "BAR_R\0" "BAR_G\0" "BAR_B\0"