Whamcloud - gitweb
libext2fs: check for fallocate symbol before using it
[tools/e2fsprogs.git] / lib / ext2fs / tst_badblocks.c
index 72b14b7..3b39ef1 100644 (file)
@@ -4,11 +4,12 @@
  * Copyright (C) 1996 by Theodore Ts'o.
  *
  * %Begin-Header%
- * This file may be redistributed under the terms of the GNU Public
- * License.
+ * This file may be redistributed under the terms of the GNU Library
+ * General Public License, version 2.
  * %End-Header%
  */
 
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
 #if HAVE_UNISTD_H
@@ -271,6 +272,8 @@ int main(int argc, char **argv)
        int     equal;
        errcode_t       retval;
 
+       add_error_table(&et_ext2_error_table);
+
        bb1 = bb2 = bb3 = bb4 = bb5 = 0;
 
        printf("test1: ");