Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix gcc and clang warnings
[tools/e2fsprogs.git]
/
lib
/
ext2fs
/
jfs_compat.h
diff --git
a/lib/ext2fs/jfs_compat.h
b/lib/ext2fs/jfs_compat.h
index
75a0596
..
f1a3f96
100644
(file)
--- a/
lib/ext2fs/jfs_compat.h
+++ b/
lib/ext2fs/jfs_compat.h
@@
-7,7
+7,11
@@
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
+#ifdef HAVE_WINSOCK_H
+#include <winsock.h>
+#else
#include <arpa/inet.h>
#include <arpa/inet.h>
+#endif
#define printk printf
#define KERN_ERR ""
#define printk printf
#define KERN_ERR ""
@@
-83,14
+87,6
@@
struct journal_s
__u32 j_csum_seed;
};
__u32 j_csum_seed;
};
-#define J_ASSERT(assert) \
- do { if (!(assert)) { \
- printf ("Assertion failure in %s() at %s line %d: " \
- "\"%s\"\n", \
- __FUNCTION__, __FILE__, __LINE__, # assert); \
- fatal_error(e2fsck_global_ctx, 0); \
- } } while (0)
-
#define is_journal_abort(x) 0
#define BUFFER_TRACE(bh, info) do {} while (0)
#define is_journal_abort(x) 0
#define BUFFER_TRACE(bh, info) do {} while (0)