~ubuntu-branches/ubuntu/hoary/cdrtools/hoary

« back to all changes in this revision

Viewing changes to include/libport.h

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2002-04-09 10:03:06 UTC
  • Revision ID: james.westby@ubuntu.com-20020409100306-t4hagiv7gm0fhggv
Tags: upstream-1.10
ImportĀ upstreamĀ versionĀ 1.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* @(#)libport.h        1.4 00/11/08 Copyright 1995 J. Schilling */
 
2
/*
 
3
 *      Copyright (c) 1995 J. Schilling
 
4
 */
 
5
/*
 
6
 * This program is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 2, or (at your option)
 
9
 * any later version.
 
10
 *
 
11
 * This program is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with this program; see the file COPYING.  If not, write to
 
18
 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
19
 */
 
20
 
 
21
 
 
22
#ifndef _LIBPORT_H
 
23
#define _LIBPORT_H
 
24
 
 
25
#ifndef _MCONFIG_H
 
26
#include <mconfig.h>
 
27
#endif
 
28
#ifndef _PROTOTYP_H
 
29
#include <prototyp.h>
 
30
#endif
 
31
 
 
32
#ifdef  __cplusplus
 
33
extern "C" {
 
34
#endif
 
35
 
 
36
#ifdef  OPENSERVER
 
37
/*
 
38
 * Don't use the usleep() from libc on SCO's OPENSERVER.
 
39
 * It will kill our processes with SIGALRM.
 
40
 */
 
41
/*
 
42
 * Don't #undef HAVE_USLEEP in this file, SCO has a
 
43
 * usleep() prototype in unistd.h
 
44
 */
 
45
/*#undef        HAVE_USLEEP*/
 
46
#endif
 
47
 
 
48
#ifndef HAVE_GETHOSTID
 
49
extern  long            gethostid       __PR((void));
 
50
#endif
 
51
#ifndef HAVE_GETHOSTNAME
 
52
extern  int             gethostname     __PR((char *name, int namelen));
 
53
#endif
 
54
#ifndef HAVE_GETDOMAINNAME
 
55
extern  int             getdomainname   __PR((char *name, int namelen));
 
56
#endif
 
57
#ifndef HAVE_USLEEP
 
58
extern  int             usleep          __PR((int usec));
 
59
#endif
 
60
 
 
61
#ifdef  __cplusplus
 
62
}
 
63
#endif
 
64
 
 
65
#endif  /* _LIBPORT_H */