blob: 2f6d6d5613e2924e1b2f8c8089bd9de82ea425ef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
Fixes compile issue
Supposedly DT_* is not defined, though header file
exists.
--- nbd-server.c.orig 2018-08-28 16:46:42 UTC
+++ nbd-server.c
@@ -678,13 +678,9 @@ SERVER* cmdline(int argc, char *argv[], struct generic
/* forward definition of parse_cfile */
GArray* parse_cfile(gchar* f, struct generic_conf *genconf, bool expect_generic, GError** e);
-#ifdef HAVE_STRUCT_DIRENT_D_TYPE
-#define NBD_D_TYPE de->d_type
-#else
#define NBD_D_TYPE 0
#define DT_UNKNOWN 0
#define DT_REG 1
-#endif
/**
* Parse config file snippets in a directory. Uses readdir() and friends
|