summaryrefslogtreecommitdiffstats
path: root/src/H5PL.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2015-01-27 16:01:48 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2015-01-27 16:01:48 (GMT)
commit75da78bc7580ebb71093d077e070c3b60d59fe9f (patch)
tree3abda93343c6f1ece3e5c17e39f3b6dbfd2ffabe /src/H5PL.c
parentba9a30fd8e56db9d72636baebb4d05bc1e646ac8 (diff)
downloadhdf5-75da78bc7580ebb71093d077e070c3b60d59fe9f.zip
hdf5-75da78bc7580ebb71093d077e070c3b60d59fe9f.tar.gz
hdf5-75da78bc7580ebb71093d077e070c3b60d59fe9f.tar.bz2
[svn-r26048] HDFFV-8736: Patch H5PL.c and test for cygwin plugin support. Merged from trunk.
Diffstat (limited to 'src/H5PL.c')
-rw-r--r--src/H5PL.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5PL.c b/src/H5PL.c
index 6aa4ec6..c178cf8 100644
--- a/src/H5PL.c
+++ b/src/H5PL.c
@@ -406,8 +406,14 @@ H5PL__find(H5PL_type_t plugin_type, int type_id, char *dir, const void **info)
/* The library we are looking for should be called libxxx.so... on Unix
* or libxxx.xxx.dylib on Mac.
*/
+#ifndef __CYGWIN__
if(!HDstrncmp(dp->d_name, "lib", (size_t)3) &&
(HDstrstr(dp->d_name, ".so") || HDstrstr(dp->d_name, ".dylib"))) {
+#else
+ if(!HDstrncmp(dp->d_name, "cyg", (size_t)3) &&
+ HDstrstr(dp->d_name, ".dll") ) {
+
+#endif
h5_stat_t my_stat;
size_t pathname_len;
htri_t found_in_dir;