]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/filed/backup.c
Manually apply patch in bug #2156 to allow building on KFreeBSD
[bacula/bacula] / bacula / src / filed / backup.c
index a8d842359cdb0e9068ecc35badc666367eaa1a1e..9d2b58f1061b4fa60edb92c4fd21b31a5d3a8eee 100644 (file)
@@ -627,7 +627,7 @@ static int send_data(bctx_t &bctx, int stream)
    if ((bctx.ff_pkt->flags & FO_SPARSE) || (bctx.ff_pkt->flags & FO_OFFSETS)) {
       bctx.rbuf += OFFSET_FADDR_SIZE;
       bctx.rsize -= OFFSET_FADDR_SIZE;
-#ifdef HAVE_FREEBSD_OS
+#if defined(HAVE_FREEBSD_OS) || defined(__FreeBSD_kernel__)
       /**
        * To read FreeBSD partitions, the read size must be
        *  a multiple of 512.