~ubuntu-branches/ubuntu/raring/pam-pgsql/raring-proposed

« back to all changes in this revision

Viewing changes to tests/chpass.c

  • Committer: Bazaar Package Importer
  • Author(s): Jan Dittberner
  • Date: 2010-04-02 12:51:17 UTC
  • mfrom: (1.1.4 upstream) (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100402125117-28caei1ses0vzdog
Tags: 0.7.1-1
* New upstream version
* disable debian/patches/ftbfs_544686.patch, upstream restructured
  configure.ac and it does not apply anymore
* debian/rules:
  - update configure call and make install call to match new upstream build
    system
  - remove sample.sql and CHANGELOG from installed files to let
    dh_installchangelogs and dh_installexamples do their jobs
* debian/control: update Standards-Version to 3.8.4 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * William Grzybowski <william@agencialivre.com.br>
5
5
 */
6
6
 
 
7
#include <config.h>
 
8
 
7
9
#include <stdio.h>
8
10
#include <stdlib.h>
9
11
#include <security/pam_appl.h>
10
 
#ifdef __FreeBSD__
 
12
#if HAVE_SECURITY_OPENPAM_H
11
13
#include <security/openpam.h>
12
 
#else
 
14
#elif HAVE_SECURITY_PAM_MISC_H
13
15
#include <security/pam_misc.h>
14
16
#endif
15
17
 
16
18
static struct pam_conv conv = {
17
 
#ifdef __FreeBSD__
18
 
        openpam_ttyconv,
 
19
#if HAVE_OPENPAM_TTYCONV
 
20
        openpam_ttyconv,
 
21
#elif HAVE_MISC_CONV
 
22
        misc_conv,
19
23
#else
20
 
        misc_conv,
 
24
# error "No PAM conversation found"
21
25
#endif
22
 
        NULL
 
26
        NULL
23
27
};
24
28
 
25
29
int main(int argc, char **argv) {