read.h: include sys/types.h since some OS's need it.

cdio-eject.c: no real changes. Add copyright.
This commit is contained in:
rocky
2007-04-15 16:23:58 +00:00
parent 6d72edc346
commit 63f0137d4b
2 changed files with 26 additions and 2 deletions

View File

@@ -1,6 +1,25 @@
/* -*- c -*-
$Id: cdio-eject.c,v 1.2 2007/04/15 16:23:58 rocky Exp $
Copyright (C) 2007 Rocky Bernstein <rocky@gnu.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <cdio/cdio.h>
#include <stdio.h>
#include <string.h>
#include <cdio/cdio.h>
static void usage(char * progname)
{

View File

@@ -1,5 +1,5 @@
/* -*- c -*-
$Id: read.h,v 1.13 2007/03/16 15:32:48 rocky Exp $
$Id: read.h,v 1.14 2007/04/15 16:23:58 rocky Exp $
Copyright (C) 2005, 2006, 2007 Rocky Bernstein <rocky@gnu.org>
@@ -33,6 +33,11 @@
#include <cdio/cdio_config.h>
#endif
#ifdef HAVE_SYS_TYPES_H
/* Some systems need this for off_t and ssize. */
#include <sys/types.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */