Skip to content

Commit

Permalink
Only include uuid/uuid.h if we havne't already included uuid.h, since…
Browse files Browse the repository at this point in the history
… including both can result in type conflicts depending on what packages

have been installed on a machine.

* misc/unix/rand.c: Only include uuid/uuid.h if we haven't included
  uuid.h.

* CHANGES: Note change.

Submitted by: Craig Rodrigues <rodrigc at crodrigues.org>


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@355780 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Garrett Rooney committed Dec 10, 2005
1 parent 8754e69 commit 3fded78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Changes for APR ???

*) Only include uuid/uuid.h if we haven't already included uuid.h, since
doing so can result in type conflicts.
[Craig Rodrigues <rodrigc at crodrigues.org>]

Changes for APR 1.3.0

*) Bugfix for apr_pollset_poll() on systems that implement pollsets
Expand Down
5 changes: 2 additions & 3 deletions misc/unix/rand.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@
#if APR_HAVE_SYS_UN_H
#include <sys/un.h>
#endif
#ifdef HAVE_UUID_UUID_H
#include <uuid/uuid.h>
#endif
#ifdef HAVE_UUID_H
#include <uuid.h>
#elif defined(HAVE_UUID_UUID_H)
#include <uuid/uuid.h>
#endif

#ifndef SHUT_RDWR
Expand Down

0 comments on commit 3fded78

Please sign in to comment.