Skip to content

Commit

Permalink
chore: add version switch based on Linux kernel version
Browse files Browse the repository at this point in the history
  • Loading branch information
sparkpunkd committed Jun 28, 2019
1 parent da08409 commit 803d5c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/omniORB/omniORB4/omniInternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//
// Description:
// *** PROPRIETARY INTERFACE ***
//
//

#ifndef __OMNIINTERNAL_H__
#define __OMNIINTERNAL_H__
Expand Down
14 changes: 12 additions & 2 deletions src/cxx/quentin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,21 @@
#include <omniORB4/callDescriptor.h>
#include <omniORB4/callHandle.h>
#include <omniORB4/objTracker.h>

#ifdef __linux__
#include <linux/version.h>
#endif

OMNI_USING_NAMESPACE(omni)

static const char* _0RL_library_version = omniORB_4_1;
#ifdef __linux__
#if LINUX_VERSION_CODE <= KERNEL_VERSION(4,15,0)
static const char* _0RL_library_version = omniORB_4_1; // earler than buster, e.g. stretch
#else
static const char* _0RL_library_version = omniORB_4_2;
#endif
#else
static const char* _0RL_library_version = omniORB_4_2;
#endif


_init_in_def_( const ::CORBA::Long Quentin::maxNumber = 9999; )
Expand Down

0 comments on commit 803d5c7

Please sign in to comment.