]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmonctl: fix compile error
authorSage Weil <sage@newdream.net>
Wed, 10 Dec 2008 21:22:28 +0000 (13:22 -0800)
committerSage Weil <sage@newdream.net>
Wed, 10 Dec 2008 21:22:28 +0000 (13:22 -0800)
src/cmonctl.cc

index a44d22ee98d6b22ddbc1c5f43d6db7dcdde106cc..e35b85ff2a41e7fa747493b726e62d6e9aeafba3 100644 (file)
@@ -35,6 +35,12 @@ using namespace std;
 #include <sys/stat.h>
 #include <fcntl.h>
 
+extern "C" {
+#include <histedit.h>
+}
+
+
+
 Mutex lock("cmonctl.cc lock");
 Cond cond;
 
@@ -214,9 +220,6 @@ void usage()
 }
 
 
-#include <histedit.h>
-
-
 const char *cli_prompt(EditLine *e) {
   return "monctl> ";
 }