mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-19 14:36:38 -05:00
Fix the interpretation of the return value of smartctl in Windows
This commit is contained in:
parent
b3879f7f8e
commit
7f7135dc1b
2 changed files with 1 additions and 8 deletions
|
|
@ -2820,7 +2820,7 @@ retry:
|
|||
|
||||
/* store the smartctl return value */
|
||||
if (smart)
|
||||
smart[SMART_FLAGS].raw = WEXITSTATUS(ret);
|
||||
smart[SMART_FLAGS].raw = ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -18,13 +18,6 @@
|
|||
#ifndef __UNIX_H
|
||||
#define __UNIX_H
|
||||
|
||||
#ifndef WEXITSTATUS
|
||||
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
|
||||
#endif
|
||||
#ifndef WIFEXITED
|
||||
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
#define HAVE_LINUX_DEVICE 1 /**< In Linux enables special device support. */
|
||||
#define HAVE_DIRECT_IO 1 /**< Support O_DIRECT in open(). */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue