Changeset e5fcb7ff3e6764a575271ad84377585036836361
- Timestamp:
- 05/26/08 18:06:46
(3 months ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1211818006 +0300
- git-parent:
[d3cccc0bd127932962cf22df25129167f56ba46b]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1211818006 +0300
- Message:
No need for SYS_LINUX
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r7e5f8f8 |
re5fcb7f |
|
| 48 | 48 | #endif |
|---|
| 49 | 49 | |
|---|
| 50 | | #if defined(SYS_LINUX) && defined(HAVE_LINUX_VERSION_H) |
|---|
| | 50 | #if defined(__linux__) && defined(HAVE_LINUX_VERSION_H) |
|---|
| 51 | 51 | # include <linux/version.h> |
|---|
| 52 | 52 | /* handy macro found in 2.1 kernels, but not in older ones */ |
|---|
| … | … | |
| 81 | 81 | * Local prototypes |
|---|
| 82 | 82 | *****************************************************************************/ |
|---|
| 83 | | #if defined(SYS_LINUX) && defined(HAVE_LINUX_VERSION_H) |
|---|
| | 83 | #if defined(__linux__) && defined(HAVE_LINUX_VERSION_H) |
|---|
| 84 | 84 | static int EjectSCSI ( int i_fd ); |
|---|
| 85 | 85 | #endif |
|---|
| … | … | |
| 193 | 193 | } |
|---|
| 194 | 194 | |
|---|
| 195 | | #if defined(SYS_LINUX) && defined(HAVE_LINUX_VERSION_H) |
|---|
| | 195 | #if defined(__linux__) && defined(HAVE_LINUX_VERSION_H) |
|---|
| 196 | 196 | /* Try a simple ATAPI eject */ |
|---|
| 197 | 197 | i_ret = ioctl( i_fd, CDROMEJECT, 0 ); |
|---|
| … | … | |
| 223 | 223 | /* The following functions are local */ |
|---|
| 224 | 224 | |
|---|
| 225 | | #if defined(SYS_LINUX) && defined(HAVE_LINUX_VERSION_H) |
|---|
| | 225 | #if defined(__linux__) && defined(HAVE_LINUX_VERSION_H) |
|---|
| 226 | 226 | /***************************************************************************** |
|---|
| 227 | 227 | * Eject using SCSI commands. Return 0 if successful |
|---|
| r35d8114 |
re5fcb7f |
|
| 336 | 336 | fprintf( stderr, " some optimizations will be disabled unless " |
|---|
| 337 | 337 | "you upgrade your OS\n" ); |
|---|
| 338 | | # if defined( SYS_LINUX ) |
|---|
| | 338 | # if defined( __linux__ ) |
|---|
| 339 | 339 | fprintf( stderr, " (for instance Linux kernel 2.4.x or later)\n" ); |
|---|
| 340 | 340 | # endif |
|---|