~ubuntu-branches/ubuntu/hardy/prelude-manager/hardy

« back to all changes in this revision

Viewing changes to m4/ac_prototype_accept.m4

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2007-03-22 18:09:27 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070322180927-tzvkkuk7yc5m0s9d
Tags: 0.9.7.2-2
* Fix permissions on configuration file (make sure it is not world-readable)
* Update my email address

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl @synopsis AC_PROTOTYPE_ACCEPT
2
 
dnl
3
 
dnl Requires the AC_PROTOTYPE macro.
4
 
dnl
5
 
dnl Find the type of argument two and three of accept. User
6
 
dnl must include the following in acconfig.h:
7
 
dnl
8
 
dnl /* Type of second argument of accept */
9
 
dnl #undef ACCEPT_ARG2
10
 
dnl
11
 
dnl /* Type of third argument of accept */
12
 
dnl #undef ACCEPT_ARG3
13
 
dnl
14
 
dnl @version $Id: ac_prototype_accept.m4,v 1.1.1.1 2001/07/26 00:46:29 guidod Exp $
15
 
dnl @author Loic Dachary <loic@senga.org>
16
 
dnl
17
 
AC_DEFUN([AC_PROTOTYPE_ACCEPT],[
18
 
AC_PROTOTYPE(accept,
19
 
 [
20
 
  #include <sys/types.h>
21
 
  #include <sys/socket.h>
22
 
 ],
23
 
 [
24
 
  int a = 0;
25
 
  ARG2 * b = 0;
26
 
  ARG3 * c = 0;
27
 
  accept(a, b, c);
28
 
 ],
29
 
 ARG2, [struct sockaddr, void],
30
 
 ARG3, [socklen_t, size_t, int, unsigned int, long unsigned int])
31
 
])