mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Add linux compatibility
Resolve minor Linux compatibility issues. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
@@ -149,9 +149,12 @@ extern "C" {
|
||||
|
||||
/*
|
||||
* Convert mode bits (zp_mode) to BSD-style DT_* values for storing in
|
||||
* the directory entries.
|
||||
* the directory entries. On Linux systems this value is already
|
||||
* defined correctly as part of the /usr/include/dirent.h header file.
|
||||
*/
|
||||
#ifndef IFTODT
|
||||
#define IFTODT(mode) (((mode) & S_IFMT) >> 12)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The directory entry has the type (currently unused on Solaris) in the
|
||||
|
||||
Reference in New Issue
Block a user