summaryrefslogtreecommitdiffstats
path: root/common/elapi/elapi_defines.h
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-10-07 09:45:39 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-10-16 14:27:24 -0400
commit01bf2fcf57944104f9a774c8716950f397d666ce (patch)
tree7d20b82674596a0946a2b339f807cf84fc58c769 /common/elapi/elapi_defines.h
parent82648b5af3cb5e68a48fe1e798ef48254ccbecb8 (diff)
downloadsssd_unused-01bf2fcf57944104f9a774c8716950f397d666ce.tar.gz
sssd_unused-01bf2fcf57944104f9a774c8716950f397d666ce.tar.xz
sssd_unused-01bf2fcf57944104f9a774c8716950f397d666ce.zip
ELAPI Compatibility code for getifaddr()
Addreses ticket #94 Actually works pretty well. To try use --enable-compat when build ELAPI. It will use compatibility code instead of getifaddr(). The trick in the elapi_ioctl.h with memory allocation is taken from Stevens book.
Diffstat (limited to 'common/elapi/elapi_defines.h')
-rw-r--r--common/elapi/elapi_defines.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/common/elapi/elapi_defines.h b/common/elapi/elapi_defines.h
new file mode 100644
index 00000000..84030e86
--- /dev/null
+++ b/common/elapi/elapi_defines.h
@@ -0,0 +1,27 @@
+/*
+ ELAPI
+
+ Global defines for ELAPI
+
+ Copyright (C) Dmitri Pal <dpal@redhat.com> 2009
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef ELAPI_DEFINES_H
+#define ELAPI_DEFINES_H
+
+#ifndef EOK
+#define EOK 0
+#endif
+
+#endif