Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/init/bootchartd.c


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/init/bootchartd.c

    r3232 r3621  
    4848
    4949#include "libbb.h"
     50#include "common_bufsiz.h"
    5051/* After libbb.h, since it needs sys/types.h on some systems */
    5152#include <sys/utsname.h>
     
    6162#endif
    6263
     64#if !ENABLE_TAR && !ENABLE_WERROR
     65# warning Note: bootchartd requires tar command, but you did not select it.
     66#elif !ENABLE_FEATURE_SEAMLESS_GZ && !ENABLE_WERROR
     67# warning Note: bootchartd requires tar -z support, but you did not select it.
     68#endif
     69
    6370#define BC_VERSION_STR "0.8"
    6471
     
    110117    char jiffy_line[COMMON_BUFSIZE];
    111118} FIX_ALIASING;
    112 #define G (*(struct globals*)&bb_common_bufsiz1)
    113 #define INIT_G() do { } while (0)
     119#define G (*(struct globals*)bb_common_bufsiz1)
     120#define INIT_G() do { setup_common_bufsiz(); } while (0)
    114121
    115122static void dump_file(FILE *fp, const char *filename)
     
    188195         * Try a few locations which are likely ti exist.
    189196         */
    190         static const char dirs[] = "/mnt\0""/tmp\0""/boot\0""/proc\0";
     197        static const char dirs[] ALIGN1 = "/mnt\0""/tmp\0""/boot\0""/proc\0";
    191198        const char *try_dir = dirs;
    192199        while (mount("none", try_dir, "tmpfs", MS_SILENT, "size=16m") != 0) {
Note: See TracChangeset for help on using the changeset viewer.