• E
    build: avoid non-portable byte-swapping · 4bba6579
    Eric Blake 提交于
    Commit 0fc89098 used functions only available on glibc, completely
    botched 32-bit environments, and risked SIGBUS due to unaligned
    memory access on platforms that aren't as forgiving as x86_64.
    
    * bootstrap.conf (gnulib_modules): Import ffsl.
    * src/util/bitmap.c (includes): Use <strings.h> for ffsl.
    (virBitmapNewData, virBitmapToData): Avoid 64-bit assumptions and
    non-portable functions.
    4bba6579
bitmap.c 13.5 KB