CMake/Utilities/cmtar/internal.h

28 lines
619 B
C
Raw Normal View History

2005-12-28 18:18:37 +03:00
/*
** Copyright 2002-2003 University of Illinois Board of Trustees
** Copyright 2002-2003 Mark D. Roth
** All rights reserved.
**
** internal.h - internal header file for libtar
**
** Mark D. Roth <roth@uiuc.edu>
** Campus Information Technologies and Educational Services
** University of Illinois at Urbana-Champaign
*/
#include <libtar/config.h>
#include <libtar/compat.h>
#include <libtar/libtar.h>
2005-12-30 18:35:23 +03:00
#ifdef HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
#endif
#ifndef HAVE_MAJOR
2005-12-30 18:35:23 +03:00
# define major(dev) ((int)(((dev) >> 8) & 0xff))
#endif
#ifndef HAVE_MINOR
2005-12-30 18:35:23 +03:00
# define minor(dev) ((int)((dev) & 0xff))
#endif