COMP: Attempt to fix problems with major and minor
This commit is contained in:
parent
d512118079
commit
75b6f523ab
|
@ -99,6 +99,8 @@ FOREACH(func
|
|||
strftime
|
||||
vsnprintf
|
||||
glob
|
||||
major
|
||||
minor
|
||||
)
|
||||
CHECK_SYMBOL_EXISTS_EX("${func}")
|
||||
ENDFOREACH(func)
|
||||
|
|
|
@ -3,6 +3,12 @@
|
|||
/* Define if your system has a working basename */
|
||||
#cmakedefine HAVE_BASENAME @HAVE_BASENAME@
|
||||
|
||||
/* Define if your system has a working major */
|
||||
#cmakedefine HAVE_MAJOR @HAVE_MAJOR@
|
||||
|
||||
/* Define if your system has a working minor */
|
||||
#cmakedefine HAVE_MINOR @HAVE_MINOR@
|
||||
|
||||
/* Define to 1 if you have the <ctype.h> header file. */
|
||||
#cmakedefine HAVE_CTYPE_H @HAVE_CTYPE_H@
|
||||
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
|
||||
#include <libtar/libtar.h>
|
||||
|
||||
#ifndef major
|
||||
#ifndef HAVE_MAJOR
|
||||
# define major(dev) ((int)(((dev) >> 8) & 0xff))
|
||||
#endif
|
||||
#ifndef minor
|
||||
#ifndef HAVE_MINOR
|
||||
# define minor(dev) ((int)((dev) & 0xff))
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue