~ubuntu-branches/ubuntu/gutsy/wireshark/gutsy-security

« back to all changes in this revision

Viewing changes to tools/pidl/tests/Util.pm

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2007-04-01 08:58:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070401085840-or3qhrpv8alt1bwg
Tags: 0.99.5-1
* New upstream release.
* debian/patches/09_idl2wrs.dpatch: updated to patch idl2wrs.sh.in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
SKIP: {
36
36
 
37
37
        skip "no samba environment available, skipping compilation", 3 
38
 
                if (system("pkg-config --exists dcerpc ndr") != 0);
 
38
                if (system("pkg-config --exists ndr") != 0);
39
39
 
40
40
        my $test_data_prefix = $ENV{TEST_DATA_PREFIX};
41
41
 
46
46
                $outfile = "test-$name";
47
47
        }
48
48
 
49
 
        my $cflags = `pkg-config --libs --cflags dcerpc ndr`;
 
49
        my $cflags = `pkg-config --libs --cflags ndr`;
50
50
 
51
51
        open CC, "|cc -x c - -o $outfile $cflags";
52
52
        print CC "#define uint_t unsigned int\n";
56
56
        print CC "#include <stdio.h>\n";
57
57
        print CC "#include <stdbool.h>\n";
58
58
        print CC "#include <stdarg.h>\n";
 
59
        print CC "#include <core.h>\n";
59
60
        print CC $header;
60
61
        print CC $ndrheader;
61
62
        print CC $extra if ($extra);