COMP: Attempt to fix problems with major and minor

This commit is contained in:
Andy Cedilnik 2005-12-31 09:40:44 -05:00
parent d512118079
commit 75b6f523ab
3 changed files with 10 additions and 2 deletions

View File

@ -99,6 +99,8 @@ FOREACH(func
strftime strftime
vsnprintf vsnprintf
glob glob
major
minor
) )
CHECK_SYMBOL_EXISTS_EX("${func}") CHECK_SYMBOL_EXISTS_EX("${func}")
ENDFOREACH(func) ENDFOREACH(func)

View File

@ -3,6 +3,12 @@
/* Define if your system has a working basename */ /* Define if your system has a working basename */
#cmakedefine HAVE_BASENAME @HAVE_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. */ /* Define to 1 if you have the <ctype.h> header file. */
#cmakedefine HAVE_CTYPE_H @HAVE_CTYPE_H@ #cmakedefine HAVE_CTYPE_H @HAVE_CTYPE_H@

View File

@ -15,9 +15,9 @@
#include <libtar/libtar.h> #include <libtar/libtar.h>
#ifndef major #ifndef HAVE_MAJOR
# define major(dev) ((int)(((dev) >> 8) & 0xff)) # define major(dev) ((int)(((dev) >> 8) & 0xff))
#endif #endif
#ifndef minor #ifndef HAVE_MINOR
# define minor(dev) ((int)((dev) & 0xff)) # define minor(dev) ((int)((dev) & 0xff))
#endif #endif