author | qdii <qdii@reblochon.be> | 2012-11-02 13:49:03 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2012-11-02 13:49:03 (UTC) |
commit | 648ae5dbd90e062f3432f809a846d50d994b86d4 (patch) (unidiff) | |
tree | d9cbb0276d9a51db9243449866f01828dba36ab7 | |
parent | 824440e52ce8ddf1c45487d20d8996d08d0f96b5 (diff) | |
download | libopkele-648ae5dbd90e062f3432f809a846d50d994b86d4.zip libopkele-648ae5dbd90e062f3432f809a846d50d994b86d4.tar.gz libopkele-648ae5dbd90e062f3432f809a846d50d994b86d4.tar.bz2 |
Function _exit was referenced in the code, but <unistd.h> was not included, causing compilation to fail.
-rw-r--r-- | test/idiscover.cc | 1 | ||||
-rw-r--r-- | test/test.cc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/idiscover.cc b/test/idiscover.cc index 4b1e90c..8a5a3fb 100644 --- a/test/idiscover.cc +++ b/test/idiscover.cc | |||
@@ -1,16 +1,17 @@ | |||
1 | #include <iostream> | 1 | #include <iostream> |
2 | #include <stdexcept> | 2 | #include <stdexcept> |
3 | #include <iterator> | 3 | #include <iterator> |
4 | #include <algorithm> | 4 | #include <algorithm> |
5 | #include <unistd.h> | ||
5 | using namespace std; | 6 | using namespace std; |
6 | #include <opkele/exception.h> | 7 | #include <opkele/exception.h> |
7 | #include <opkele/discovery.h> | 8 | #include <opkele/discovery.h> |
8 | #include <opkele/util.h> | 9 | #include <opkele/util.h> |
9 | #include <opkele/util-internal.h> | 10 | #include <opkele/util-internal.h> |
10 | 11 | ||
11 | namespace opkele { | 12 | namespace opkele { |
12 | ostream& operator<<(ostream& o,const opkele::openid_endpoint_t& oep) { | 13 | ostream& operator<<(ostream& o,const opkele::openid_endpoint_t& oep) { |
13 | o | 14 | o |
14 | << " URI: " << oep.uri << endl | 15 | << " URI: " << oep.uri << endl |
15 | << " Claimed ID: " << oep.claimed_id << endl | 16 | << " Claimed ID: " << oep.claimed_id << endl |
16 | << " Local ID: " << oep.local_id << endl; | 17 | << " Local ID: " << oep.local_id << endl; |
diff --git a/test/test.cc b/test/test.cc index 2143ac0..770e0c6 100644 --- a/test/test.cc +++ b/test/test.cc | |||
@@ -1,14 +1,15 @@ | |||
1 | #include <iostream> | 1 | #include <iostream> |
2 | #include <stdexcept> | 2 | #include <stdexcept> |
3 | #include <unistd.h> | ||
3 | using namespace std; | 4 | using namespace std; |
4 | #include <opkele/exception.h> | 5 | #include <opkele/exception.h> |
5 | #include <opkele/util.h> | 6 | #include <opkele/util.h> |
6 | 7 | ||
7 | #include "config.h" | 8 | #include "config.h" |
8 | 9 | ||
9 | class failed_test : public opkele::exception { | 10 | class failed_test : public opkele::exception { |
10 | public: | 11 | public: |
11 | failed_test(OPKELE_E_PARS) | 12 | failed_test(OPKELE_E_PARS) |
12 | : exception(OPKELE_E_CONS) { } | 13 | : exception(OPKELE_E_CONS) { } |
13 | }; | 14 | }; |
14 | 15 | ||