Skip to content
Snippets Groups Projects
Commit 75b6f523 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

COMP: Attempt to fix problems with major and minor

parent d5121180
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment