Skip to content

Commit

Permalink
Haiku specific fix: add major and minor defines if they aren't there.
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Ford <bford@engineyard.com>
  • Loading branch information
leavengood authored and Brian Ford committed Jan 16, 2011
1 parent 0be4675 commit 19ec01c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vm/ffi_util.cpp
Expand Up @@ -152,6 +152,14 @@ unsigned int ffi_cast(unsigned int val) {
return val;
}

#ifndef major
#define major(x) x
#endif

#ifndef minor
#define minor(x) 0
#endif

long ffi_major(dev_t n) {
return major(n);
}
Expand Down

0 comments on commit 19ec01c

Please sign in to comment.